From c713563a2e76560db54ce5efe32ce58f21d4c41c Mon Sep 17 00:00:00 2001 From: naskya Date: Fri, 5 May 2023 08:17:45 +0900 Subject: [PATCH] Boosts should be prioritized --- packages/client/src/scripts/check-word-mute.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/client/src/scripts/check-word-mute.ts b/packages/client/src/scripts/check-word-mute.ts index c04bde9e67..5ff7f24e1b 100644 --- a/packages/client/src/scripts/check-word-mute.ts +++ b/packages/client/src/scripts/check-word-mute.ts @@ -68,14 +68,6 @@ export function getWordSoftMute( return noteMuted; } - if (note.reply) { - let replyMuted = checkWordMute(note.reply, mutedWords); - if (replyMuted.muted) { - replyMuted.what = "reply"; - return replyMuted; - } - } - if (note.renote) { let renoteMuted = checkWordMute(note.renote, mutedWords); if (renoteMuted.muted) { @@ -83,6 +75,14 @@ export function getWordSoftMute( return renoteMuted; } } + + if (note.reply) { + let replyMuted = checkWordMute(note.reply, mutedWords); + if (replyMuted.muted) { + replyMuted.what = "reply"; + return replyMuted; + } + } } return NotMuted;