]> cat aescling's git repositories - mastodon.git/commit
Fix null error in status component when determining showMedia state (#10838)
authorEugen Rochko <eugen@zeonfederated.com>
Sun, 26 May 2019 11:48:16 +0000 (13:48 +0200)
committerGitHub <noreply@github.com>
Sun, 26 May 2019 11:48:16 +0000 (13:48 +0200)
commit988342a56cb58da9ac660eec3e55c3bcbbd6269b
tree63f4a95188708bbc44281a7438edf4cc53cc54e0
parent3d219c595677de0ea5814300f3ee1c11d24569b9
Fix null error in status component when determining showMedia state (#10838)

* Fix null error in status component when determining showMedia state

Also update the showMedia value if the status passed to the
component changes

* Refactor media visibility computation into a defaultMediaVisibility function

* Fix default media visibility with reblogs
app/javascript/mastodon/components/status.js
app/javascript/mastodon/features/status/index.js