fix(backend): align visibility check of liked collection with outbox
This commit is contained in:
@@ -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();
|
||||||
|
|
||||||
// 「次のページ」があるかどうか
|
// 「次のページ」があるかどうか
|
||||||
|
|||||||
Reference in New Issue
Block a user