Revert "server: fix return of visibilityQuery
function"
All checks were successful
ci/woodpecker/push/lint-client Pipeline was successful
ci/woodpecker/push/lint-backend Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/lint-foundkey-js Pipeline was successful
ci/woodpecker/push/lint-sw Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
All checks were successful
ci/woodpecker/push/lint-client Pipeline was successful
ci/woodpecker/push/lint-backend Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/lint-foundkey-js Pipeline was successful
ci/woodpecker/push/lint-sw Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
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:
parent
32f4bee5e8
commit
57e4971214
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue