Revert "server: fix return of visibilityQuery function"

This reverts commit 32f4bee5e8.

It is the right thing to do in theory, but it doesn't work.
I hate typeorm.
This commit is contained in:
Johann150 2023-02-21 21:16:28 +01:00
parent 32f4bee5e8
commit 57e4971214
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -8,10 +8,10 @@ export function visibilityQuery(q: SelectQueryBuilder<Note>, meId?: User['id'] |
.from(() => q, 'note');
if (meId == null) {
superQuery.where('note_visible(note.id, null)');
superQuery.where('note_visible(note.id, null);');
} else {
superQuery.where('note_visible(note.id, :meId)', { meId });
}
return superQuery;
return q;
}