temp(AntennaService): i am hit

This commit is contained in:
オスカー、 2024-05-14 00:14:30 +09:00
parent c3dfbf1e33
commit 6e44997103
Signed by: SWREI
GPG Key ID: 139D6573F92DA9F7

View File

@ -153,7 +153,7 @@ export class AntennaService implements OnApplicationShutdown {
@bindThis @bindThis
public async checkHitAntenna(antenna: MiAntenna, note: (MiNote | Packed<'Note'>), noteUser: { id: MiUser['id']; username: string; host: string | null; isBot: boolean; }): Promise<boolean> { public async checkHitAntenna(antenna: MiAntenna, note: (MiNote | Packed<'Note'>), noteUser: { id: MiUser['id']; username: string; host: string | null; isBot: boolean; }): Promise<boolean> {
const result = await this.filter(antenna.user, note); const result = await this.filter(antenna.user, note);
if (!result) return false; if (!result && antenna.userId !== note.userId) return false;
if (antenna.excludeBots && noteUser.isBot) return false; if (antenna.excludeBots && noteUser.isBot) return false;