From 1a3c6f25a296f3d25b8ba8e5688bf23f26515108 Mon Sep 17 00:00:00 2001
From: Hazelnoot <acomputerdog@gmail.com>
Date: Mon, 12 May 2025 13:39:12 -0400
Subject: simplify access to showSoftWordMutedWord

---
 packages/frontend/src/components/MkNoteSub.vue | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'packages/frontend/src/components/MkNoteSub.vue')

diff --git a/packages/frontend/src/components/MkNoteSub.vue b/packages/frontend/src/components/MkNoteSub.vue
index c017efa3f3..b975de85e1 100644
--- a/packages/frontend/src/components/MkNoteSub.vue
+++ b/packages/frontend/src/components/MkNoteSub.vue
@@ -78,7 +78,7 @@ SPDX-License-Identifier: AGPL-3.0-only
 			<MkUserName :user="appearNote.user"/>
 		</template>
 	</I18n>
-	<I18n v-else-if="showSoftWordMutedWord !== true" :src="i18n.ts.userSaysSomething" tag="small">
+	<I18n v-else-if="prefer.s.showSoftWordMutedWord" :src="i18n.ts.userSaysSomething" tag="small">
 		<template #name>
 			<MkUserName :user="appearNote.user"/>
 		</template>
@@ -186,7 +186,6 @@ async function removeReply(id: Misskey.entities.Note['id']) {
 const inTimeline = inject<boolean>('inTimeline', false);
 const tl_withSensitive = inject<Ref<boolean>>('tl_withSensitive', ref(true));
 const muted = ref(checkMute(appearNote.value, $i?.mutedWords));
-const showSoftWordMutedWord = computed(() => prefer.s.showSoftWordMutedWord);
 
 /* Overload FunctionにLintが対応していないのでコメントアウト
 function checkMute(noteToCheck: Misskey.entities.Note, mutedWords: Array<string | string[]> | undefined | null, checkOnly: true): boolean;
-- 
cgit v1.2.3-freya

