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