diff options
Diffstat (limited to 'src/queue')
| -rw-r--r-- | src/queue/processors/db/import-following.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/queue/processors/db/import-following.ts b/src/queue/processors/db/import-following.ts index ad9129c1f5..a1242b71c8 100644 --- a/src/queue/processors/db/import-following.ts +++ b/src/queue/processors/db/import-following.ts @@ -45,6 +45,9 @@ export async function importFollowing(job: Bull.Job, done: any): Promise<void> { target = await resolveUser(username, host); } + // skip myself + if (target._id.equals(job.data.user._id)) continue; + logger.info(`Follow ${target._id} ...`); follow(user, target); |