fix comment typo in QueryService
This commit is contained in:
parent
613e05dcc9
commit
efc8bbb4b3
1 changed files with 1 additions and 1 deletions
|
|
@ -166,7 +166,7 @@ export class QueryService {
|
||||||
// For moderation purposes, you can set isSilenced to forcibly hide existing posts by a user.
|
// For moderation purposes, you can set isSilenced to forcibly hide existing posts by a user.
|
||||||
@bindThis
|
@bindThis
|
||||||
public generateVisibilityQuery<E extends ObjectLiteral>(q: SelectQueryBuilder<E>, me?: { id: MiUser['id'] } | null): SelectQueryBuilder<E> {
|
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 => {
|
return q.andWhere(new Brackets(qb => {
|
||||||
// Public post
|
// Public post
|
||||||
qb.orWhere('note.visibility = \'public\'')
|
qb.orWhere('note.visibility = \'public\'')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue