From 1719d4133fa06cdace45ba592392b7b2249fa156 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 12 Mar 2019 12:46:01 +0900 Subject: [PATCH] Remove unnecessary checking --- src/queue/processors/db/import-following.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/queue/processors/db/import-following.ts b/src/queue/processors/db/import-following.ts index 8ab20aa8b..b814908cb 100644 --- a/src/queue/processors/db/import-following.ts +++ b/src/queue/processors/db/import-following.ts @@ -10,7 +10,6 @@ import { getOriginalUrl } from '../../../misc/get-drive-file-url'; import parseAcct from '../../../misc/acct/parse'; import resolveUser from '../../../remote/resolve-user'; import { downloadTextFile } from '../../../misc/download-text-file'; -import Following from '../../../models/following'; const logger = queueLogger.createSubLogger('import-following'); @@ -46,14 +45,6 @@ export async function importFollowing(job: Bull.Job, done: any): Promise { target = await resolveUser(username, host); } - // Check if already following - const exist = await Following.findOne({ - followerId: user._id, - followeeId: target._id - }); - - if (exist) continue; - follow(user, target); }