count "isSilenced" as a mute condition

This commit is contained in:
Hazelnoot 2025-07-25 23:44:28 -04:00
parent 16dedf7219
commit 0a97e442b2

View file

@ -125,7 +125,7 @@ function getMutes(note: Misskey.entities.Note, withHardMute: boolean, overrides:
? note.user.instance.mandatoryCW
: null;
const hasMute = hardMuted || softMutedWords.length > 0 || sensitiveMuted || threadMuted || noteMuted || !!noteMandatoryCW || !!userMandatoryCW || !!instanceMandatoryCW;
const hasMute = hardMuted || softMutedWords.length > 0 || sensitiveMuted || isSilenced || threadMuted || noteMuted || !!noteMandatoryCW || !!userMandatoryCW || !!instanceMandatoryCW;
return { hasMute, hardMuted, softMutedWords, sensitiveMuted, isSilenced, threadMuted, noteMuted, noteMandatoryCW, userMandatoryCW, instanceMandatoryCW };
}