mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 03:47:40 -07:00
Merge branch 'fix/word-mutes' of https://codeberg.org/naskya/calckey into fix/word-mutes
This commit is contained in:
commit
6143af2be9
1 changed files with 8 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue