fix comment typo in QueryService

This commit is contained in:
Hazelnoot 2025-08-11 16:25:18 -04:00
parent 613e05dcc9
commit efc8bbb4b3

View file

@ -166,7 +166,7 @@ export class QueryService {
// For moderation purposes, you can set isSilenced to forcibly hide existing posts by a user.
@bindThis
public generateVisibilityQuery<E extends ObjectLiteral>(q: SelectQueryBuilder<E>, me?: { id: MiUser['id'] } | null): SelectQueryBuilder<E> {
// This code must always be synchronized with the checks in Notes.isVisibleForMe.
// This code must always be synchronized with the checks in NoteEntityService.isVisibleForMe.
return q.andWhere(new Brackets(qb => {
// Public post
qb.orWhere('note.visibility = \'public\'')