diff --git a/packages/backend/src/server/api/common/generate-visibility-query.ts b/packages/backend/src/server/api/common/generate-visibility-query.ts index 0eecda29c..7094742e6 100644 --- a/packages/backend/src/server/api/common/generate-visibility-query.ts +++ b/packages/backend/src/server/api/common/generate-visibility-query.ts @@ -8,10 +8,10 @@ export function visibilityQuery(q: SelectQueryBuilder, 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; }