aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/schedulers/bad-actor-follow-scheduler.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/schedulers/bad-actor-follow-scheduler.ts')
-rw-r--r--server/lib/schedulers/bad-actor-follow-scheduler.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/lib/schedulers/bad-actor-follow-scheduler.ts b/server/lib/schedulers/bad-actor-follow-scheduler.ts
index 397eb470e..9b9f9e17d 100644
--- a/server/lib/schedulers/bad-actor-follow-scheduler.ts
+++ b/server/lib/schedulers/bad-actor-follow-scheduler.ts
@@ -1,3 +1,4 @@
1import { isTestInstance } from '../../helpers/core-utils'
1import { logger } from '../../helpers/logger' 2import { logger } from '../../helpers/logger'
2import { ActorFollowModel } from '../../models/activitypub/actor-follow' 3import { ActorFollowModel } from '../../models/activitypub/actor-follow'
3import { AbstractScheduler } from './abstract-scheduler' 4import { AbstractScheduler } from './abstract-scheduler'
@@ -11,7 +12,7 @@ export class BadActorFollowScheduler extends AbstractScheduler {
11 } 12 }
12 13
13 async execute () { 14 async execute () {
14 logger.info('Removing bad actor follows (scheduler).') 15 if (!isTestInstance()) logger.info('Removing bad actor follows (scheduler).')
15 16
16 try { 17 try {
17 await ActorFollowModel.removeBadActorFollows() 18 await ActorFollowModel.removeBadActorFollows()