From ccbbdc3dbe791058cc984a8e8a640e104e85f818 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=AC=B4=EB=9D=BC=EC=BF=A0=EB=AA=A8?= Date: Mon, 13 May 2024 22:25:32 +0900 Subject: [PATCH] test(AntennaService): ignore relation --- packages/backend/src/core/AntennaService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/core/AntennaService.ts b/packages/backend/src/core/AntennaService.ts index 6c4b5b08e..5979359c9 100644 --- a/packages/backend/src/core/AntennaService.ts +++ b/packages/backend/src/core/AntennaService.ts @@ -127,13 +127,13 @@ export class AntennaService implements OnApplicationShutdown { @bindThis public async checkHitAntenna(antenna: MiAntenna, note: (MiNote | Packed<'Note'>), noteUser: { id: MiUser['id']; username: string; host: string | null; isBot: boolean; }): Promise { - if (note.visibility === 'specified') return false; + /* if (note.visibility === 'specified') return false; if (note.visibility === 'followers') { if (antenna.userId === note.userId) return true; const relationship = await this.userEntityService.getRelation(antenna.userId, noteUser.id); if (!relationship.isFollowing) return false; - } + } */ if (antenna.excludeBots && noteUser.isBot) return false;