[backend/federation] Fix FilterHidden with except userId failing to translate

This seems to be an EF 9 specific bug, though I can't reproduce it in an isolated query. Benchmarks say the resulting queries perform identically, so I don't think this is much of an issue.
This commit is contained in:
Laura Hausmann 2024-09-28 02:18:43 +02:00
parent 6c76b2b2c5
commit 752c22980d
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -500,8 +500,8 @@ public static class QueryableExtensions
if (except != null)
{
hidden = hidden.Except([except]);
mentionsHidden = mentionsHidden?.Except([except]);
hidden = hidden.Where(p => p != except);
mentionsHidden = mentionsHidden?.Where(p => p != except);
}
return (hidden, mentionsHidden);