* Resolve #6563 * Update note.ts * Update generate-visibility-query.ts
This commit is contained in:
parent
0108b8bfe3
commit
da34acd35f
4 changed files with 21 additions and 3 deletions
|
|
@ -22,7 +22,7 @@ export function generateVisibilityQuery(q: SelectQueryBuilder<any>, me?: { id: U
|
|||
// または 自分自身
|
||||
.orWhere('note.userId = :userId1', { userId1: me.id })
|
||||
// または 自分宛て
|
||||
.orWhere(':userId2 = ANY(note.visibleUserIds)', { userId2: me.id })
|
||||
.orWhere(`'{"${me.id}"}' <@ note.visibleUserIds`)
|
||||
.orWhere(new Brackets(qb => { qb
|
||||
// または フォロワー宛ての投稿であり、
|
||||
.where('note.visibility = \'followers\'')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue