@@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only
55
66<template >
77<div
8- v-if =" !hardMuted && muted === false"
8+ v-if =" !hardMuted && !hideByPlugin && muted === false"
99 ref =" rootEl"
1010 v-hotkey =" keymap"
1111 :class =" [$style.root, { [$style.showActionsOnlyHover]: prefer.s.showNoteActionsOnlyHover, [$style.skipRender]: prefer.s.skipNoteRender }]"
@@ -161,7 +161,7 @@ SPDX-License-Identifier: AGPL-3.0-only
161161 </div >
162162 </article >
163163</div >
164- <div v-else-if =" !hardMuted" :class =" $style.muted" @click =" muted = false" >
164+ <div v-else-if =" !hardMuted && !hideByPlugin " :class =" $style.muted" @click =" muted = false" >
165165 <I18n v-if =" muted === 'sensitiveMute'" :src =" i18n.ts.userSaysSomethingSensitive" tag =" small" >
166166 <template #name >
167167 <MkA v-user-preview =" appearNote.userId" :to =" userPage(appearNote.user)" >
@@ -270,6 +270,7 @@ let note = deepClone(props.note);
270270
271271// plugin
272272const noteViewInterruptors = getPluginHandlers (' note_view_interruptor' );
273+ const hideByPlugin = ref (false );
273274if (noteViewInterruptors .length > 0 ) {
274275 let result: Misskey .entities .Note | null = deepClone (note );
275276 for (const interruptor of noteViewInterruptors ) {
@@ -279,7 +280,11 @@ if (noteViewInterruptors.length > 0) {
279280 console .error (err );
280281 }
281282 }
282- note = result as Misskey .entities .Note ;
283+ if (result == null ) {
284+ hideByPlugin .value = true ;
285+ } else {
286+ note = result as Misskey .entities .Note ;
287+ }
283288}
284289
285290const isRenote = Misskey .note .isPureRenote (note );
0 commit comments