[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:
parent
6c76b2b2c5
commit
752c22980d
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue