1
0
mirror of https://github.com/hotomoe/hotomoe synced 2025-01-19 08:12:51 +09:00

test(AntennaService): ignore relation

This commit is contained in:
オスカー、 2024-05-13 22:25:32 +09:00
parent 93ac587125
commit 88cff10f50
Signed by: SWREI
GPG Key ID: 139D6573F92DA9F7

View File

@ -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<boolean> {
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;