fix(backend): align visibility check of liked collection with outbox

This commit is contained in:
Daiki Mizukami 2024-08-19 23:22:25 +09:00
parent 7074f80ea2
commit 17da05ca54
No known key found for this signature in database
GPG key ID: 10478E598B944AA2

View file

@ -400,6 +400,12 @@ export class ActivityPubServerService {
.limit(limit + 1)
.orderBy('reaction.id', 'DESC')
.innerJoinAndSelect('reaction.note', 'note')
.andWhere(new Brackets(qb => {
qb
.where('note.visibility = \'public\'')
.orWhere('note.visibility = \'home\'');
}))
.andWhere('note.localOnly = FALSE')
.getMany();
// 「次のページ」があるかどうか