From 5192b58150dcbf588c7b07cb93ecde30555d791a Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Fri, 27 Sep 2024 19:50:23 +0200 Subject: [PATCH] [backend/api-shared] Also filter renotes & quotes mentioning muted/blocked users --- Iceshrimp.Backend/Core/Extensions/QueryableExtensions.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Iceshrimp.Backend/Core/Extensions/QueryableExtensions.cs b/Iceshrimp.Backend/Core/Extensions/QueryableExtensions.cs index 65796efb..6989f332 100644 --- a/Iceshrimp.Backend/Core/Extensions/QueryableExtensions.cs +++ b/Iceshrimp.Backend/Core/Extensions/QueryableExtensions.cs @@ -513,8 +513,9 @@ public static class QueryableExtensions return note => !hidden.Contains(note.UserId) && !hidden.Contains(note.RenoteUserId) && !hidden.Contains(note.ReplyUserId) && + note.Mentions.IsDisjoint(mentionsHidden) && (note.Renote == null || !hidden.Contains(note.Renote.RenoteUserId)) && - note.Mentions.IsDisjoint(mentionsHidden); + (note.Renote == null || !note.Renote.Mentions.IsDisjoint(mentionsHidden)); } return note => !hidden.Contains(note.UserId) &&