temp(AntennaService): i am hit
This commit is contained in:
parent
c3dfbf1e33
commit
6e44997103
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user