fix replies / renotes of silenced users/instances by a followed user appearing in the streaming API

This commit is contained in:
Hazelnoot 2025-09-11 14:29:32 -04:00
parent cd25ed8d18
commit 5cb94e3c60

View file

@ -345,10 +345,8 @@ export class NoteVisibilityService {
// Don't silence if it's us
if (note.userId === user?.id) return false;
// Don't silence if we're following
if (data.userFollowings?.has(note.userId)) return false;
if (!ignoreSilencedAuthor) {
// Don't silence if we're following or ignoring the author
if (!data.userFollowings?.has(note.userId) && !ignoreSilencedAuthor) {
// Silence if user is silenced
if (note.user.isSilenced) return true;