[backend/masto-client] Respect renoteUri/replyUri on /accounts/{id}/statuses when exclude_replies or exclude_reblogs are set

This commit is contained in:
Laura Hausmann 2024-07-30 02:05:02 +02:00
parent 8bfbdf01db
commit ca9a2b77e9
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -536,9 +536,9 @@ public static class QueryableExtensions
)
{
if (request.ExcludeReplies)
query = query.Where(p => p.Reply == null || p.ReplyUserId == p.UserId);
query = query.Where(p => p.Reply == null && p.ReplyUri == null || p.ReplyUserId == p.UserId);
if (request.ExcludeRenotes)
query = query.Where(p => p.Renote == null);
query = query.Where(p => p.Renote == null && p.RenoteUri == null);
if (request.Tagged != null)
query = query.Where(p => p.Tags.Contains(request.Tagged.ToLowerInvariant()));
if (request.OnlyMedia)