mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-01-01 04:56:19 +01:00
fix(backend): filter out notes by suspended users in liked
collection
This commit is contained in:
parent
17da05ca54
commit
8d41e3c8e4
1 changed files with 2 additions and 0 deletions
|
@ -400,12 +400,14 @@ export class ActivityPubServerService {
|
|||
.limit(limit + 1)
|
||||
.orderBy('reaction.id', 'DESC')
|
||||
.innerJoinAndSelect('reaction.note', 'note')
|
||||
.leftJoinAndSelect('note.user', 'noteUser')
|
||||
.andWhere(new Brackets(qb => {
|
||||
qb
|
||||
.where('note.visibility = \'public\'')
|
||||
.orWhere('note.visibility = \'home\'');
|
||||
}))
|
||||
.andWhere('note.localOnly = FALSE')
|
||||
.andWhere('noteUser.isSuspended = FALSE')
|
||||
.getMany();
|
||||
|
||||
// 「次のページ」があるかどうか
|
||||
|
|
Loading…
Reference in a new issue