From 456e7c33e032d776760f8e4a4e2d099730a609a2 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 c04bde9e6..5ff7f24e1 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;