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:
parent
93ac587125
commit
88cff10f50
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user