replace note.isSilenced with user.isSilencedForMe

This commit is contained in:
Hazelnoot 2025-07-26 22:04:11 -04:00
parent b76bb672d9
commit 455be9e197
6 changed files with 40 additions and 31 deletions

View file

@ -110,7 +110,7 @@ function getMutes(note: Misskey.entities.Note, withHardMute: boolean, overrides:
const hardMuted = override.hardMuted ?? (!isMe && withHardMute && isHardMuted(note));
const softMutedWords = override.softMutedWords ?? (isMe ? [] : isSoftMuted(note));
const sensitiveMuted = override.sensitiveMuted ?? isSensitiveMuted(note);
const isSilenced = override.isSilenced ?? note.isSilenced;
const isSilenced = override.isSilenced ?? note.user.isSilencedForMe;
const threadMuted = override.threadMuted ?? (!isMe && note.isMutingThread);
const noteMuted = override.noteMuted ?? (!isMe && note.isMutingNote);
const noteMandatoryCW = override.noteMandatoryCW !== undefined