Skip to content

Commit 8dd9f83

Browse files
committed
chore: reimplement collapse sensitive channel
1 parent c74f3ac commit 8dd9f83

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/frontend/src/components/MkNote.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ const emit = defineEmits<{
211211
}>();
212212

213213
const inTimeline = inject<boolean>('inTimeline', false);
214-
const collapseSensitiveChannel = inject('collapseSensitiveChannel', false);
214+
const collapseSensitiveChannel = inject<boolean>('collapseSensitiveChannel', false);
215215
const inChannel = inject('inChannel', null);
216216
const currentClip = inject<Ref<Misskey.entities.Clip> | null>('currentClip', null);
217217

@@ -285,6 +285,7 @@ function checkMute(noteToCheck: Misskey.entities.Note, mutedWords: Array<string
285285
if (checkOnly) return false;
286286

287287
if (inTimeline && !defaultStore.state.tl.filter.withSensitive && noteToCheck.files?.some((v) => v.isSensitive)) return 'sensitiveMute';
288+
if (collapseSensitiveChannel && noteToCheck.channel?.isSensitive) return 'sensitiveMute';
288289
return false;
289290
}
290291

0 commit comments

Comments
 (0)