summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2020-09-11 21:50:44 +0900
committersyuilo <syuilotan@yahoo.co.jp>2020-09-11 21:50:44 +0900
commite29b5c23268861432d551918949cca59fd5c79ff (patch)
tree07d8330af9a5cc9187ea02472015dfe5a4ca42d9 /src
parentUpdate dependencies (#6678) (diff)
downloadmisskey-e29b5c23268861432d551918949cca59fd5c79ff.tar.gz
misskey-e29b5c23268861432d551918949cca59fd5c79ff.tar.bz2
misskey-e29b5c23268861432d551918949cca59fd5c79ff.zip
fix(client): Fix #6698
Diffstat (limited to 'src')
-rw-r--r--src/client/components/media-image.vue8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/client/components/media-image.vue b/src/client/components/media-image.vue
index f6ed45daec..7c4ac324cb 100644
--- a/src/client/components/media-image.vue
+++ b/src/client/components/media-image.vue
@@ -64,7 +64,13 @@ export default Vue.extend({
}
},
created() {
- this.hide = this.image.isSensitive && !this.$store.state.device.alwaysShowNsfw;
+ // Plugin:register_note_view_interruptor を使って書き換えられる可能性があるためwatchする
+ this.$watch('image', () => {
+ this.hide = this.image.isSensitive && !this.$store.state.device.alwaysShowNsfw;
+ }, {
+ deep: true,
+ immediate: true,
+ });
},
methods: {
onClick() {