fix(backend): align visibility check of liked
collection with outbox
This commit is contained in:
parent
7074f80ea2
commit
17da05ca54
|
@ -400,6 +400,12 @@ 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')
|
||||||
|
.andWhere(new Brackets(qb => {
|
||||||
|
qb
|
||||||
|
.where('note.visibility = \'public\'')
|
||||||
|
.orWhere('note.visibility = \'home\'');
|
||||||
|
}))
|
||||||
|
.andWhere('note.localOnly = FALSE')
|
||||||
.getMany();
|
.getMany();
|
||||||
|
|
||||||
// 「次のページ」があるかどうか
|
// 「次のページ」があるかどうか
|
||||||
|
|
Loading…
Reference in a new issue