fix replies / renotes of silenced users/instances by a followed user appearing in the streaming API
This commit is contained in:
parent
cd25ed8d18
commit
5cb94e3c60
1 changed files with 2 additions and 4 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue