diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-11-11 21:17:51 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-11-11 21:17:51 +0900 |
| commit | 71d42f64dc840e744e757cb5edae32276d83a7f4 (patch) | |
| tree | 32ccae355b74a00cf47066a862961d8cb33fd642 /src/client/app/common/scripts/note-mixin.ts | |
| parent | [Client] Fix i18n (diff) | |
| download | misskey-71d42f64dc840e744e757cb5edae32276d83a7f4.tar.gz misskey-71d42f64dc840e744e757cb5edae32276d83a7f4.tar.bz2 misskey-71d42f64dc840e744e757cb5edae32276d83a7f4.zip | |
[Client] Implement word mute
Closes #1739
Diffstat (limited to 'src/client/app/common/scripts/note-mixin.ts')
| -rw-r--r-- | src/client/app/common/scripts/note-mixin.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/client/app/common/scripts/note-mixin.ts b/src/client/app/common/scripts/note-mixin.ts index dd5098f4cd..9f1a4c6eea 100644 --- a/src/client/app/common/scripts/note-mixin.ts +++ b/src/client/app/common/scripts/note-mixin.ts @@ -1,5 +1,6 @@ import parse from '../../../../mfm/parse'; import { sum } from '../../../../prelude/array'; +import shouldMuteNote from './should-mute-note'; import MkNoteMenu from '../views/components/note-menu.vue'; import MkReactionPicker from '../views/components/reaction-picker.vue'; import Ok from '../views/components/ok.vue'; @@ -22,7 +23,8 @@ type Opts = { export default (opts: Opts = {}) => ({ data() { return { - showContent: false + showContent: false, + hideThisNote: false }; }, @@ -86,6 +88,10 @@ export default (opts: Opts = {}) => ({ } }, + created() { + this.hideThisNote = shouldMuteNote(this.$store.state.i, this.$store.state.settings, this.appearNote); + }, + methods: { reply(viaKeyboard = false) { this.$root.$post({ |