diff --git a/packages/backend/src/server/ActivityPubServerService.ts b/packages/backend/src/server/ActivityPubServerService.ts index 5d4c17ab1d..5f53188250 100644 --- a/packages/backend/src/server/ActivityPubServerService.ts +++ b/packages/backend/src/server/ActivityPubServerService.ts @@ -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(); // 「次のページ」があるかどうか