[backend/core] Fix renote/reply FTS filters being swapped

This commit is contained in:
Laura Hausmann 2024-06-23 14:08:52 +02:00
parent 84190fe489
commit bfc3140381
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -151,8 +151,8 @@ public static class QueryableFtsExtensions
{ {
{ IsFollowers: true } => query.ApplyFollowersFilter(user, filter.Negated), { IsFollowers: true } => query.ApplyFollowersFilter(user, filter.Negated),
{ IsFollowing: true } => query.ApplyFollowingFilter(user, filter.Negated), { IsFollowing: true } => query.ApplyFollowingFilter(user, filter.Negated),
{ IsRenotes: true } => query.ApplyRepliesFilter(filter.Negated), { IsRenotes: true } => query.ApplyBoostsFilter(filter.Negated),
{ IsReplies: true } => query.ApplyBoostsFilter(filter.Negated), { IsReplies: true } => query.ApplyRepliesFilter(filter.Negated),
_ => throw new ArgumentOutOfRangeException(nameof(filter)) _ => throw new ArgumentOutOfRangeException(nameof(filter))
}; };
} }