Remove unnecessary checking

This commit is contained in:
syuilo 2019-03-12 12:46:01 +09:00
parent 612e3aafbc
commit f19ac5320e
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69
1 changed files with 0 additions and 9 deletions

View File

@ -10,7 +10,6 @@ import { getOriginalUrl } from '../../../misc/get-drive-file-url';
import parseAcct from '../../../misc/acct/parse'; import parseAcct from '../../../misc/acct/parse';
import resolveUser from '../../../remote/resolve-user'; import resolveUser from '../../../remote/resolve-user';
import { downloadTextFile } from '../../../misc/download-text-file'; import { downloadTextFile } from '../../../misc/download-text-file';
import Following from '../../../models/following';
const logger = queueLogger.createSubLogger('import-following'); const logger = queueLogger.createSubLogger('import-following');
@ -46,14 +45,6 @@ export async function importFollowing(job: Bull.Job, done: any): Promise<void> {
target = await resolveUser(username, host); 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); follow(user, target);
} }