フォローインポートで自分をスキップするように (#4614)
* skip myself in import-following * skip owner in publishToFollowers
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user