[backend/core] Fix QueryableExtensions.FilterMuted

This commit is contained in:
Laura Hausmann 2024-03-26 19:08:52 +01:00
parent aad05c0d22
commit 174064416a
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -312,12 +312,12 @@ public static class QueryableExtensions
//TODO: handle muted instances
if (user == null) return query;
return query.Where(note => !note.User.IsMuting(user))
.Where(note => note.Renote == null || !note.Renote.User.IsMuting(user))
return query.Where(note => !note.User.IsMutedBy(user))
.Where(note => note.Renote == null || !note.Renote.User.IsMutedBy(user))
.Where(note => note.Renote == null ||
note.Renote.Renote == null ||
!note.Renote.Renote.User.IsMuting(user))
.Where(note => note.Reply == null || !note.Reply.User.IsMuting(user));
!note.Renote.Renote.User.IsMutedBy(user))
.Where(note => note.Reply == null || !note.Reply.User.IsMutedBy(user));
}
public static IQueryable<Note> FilterBlockedConversations(