From 75d02a51a61fdf97996a16fc3c6d1a822c184aea Mon Sep 17 00:00:00 2001 From: Namekuji Date: Thu, 13 Apr 2023 14:22:20 -0400 Subject: [PATCH] do not unfollow when moving --- packages/backend/src/core/AccountMoveService.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/backend/src/core/AccountMoveService.ts b/packages/backend/src/core/AccountMoveService.ts index 75b15e0522..4362b40e29 100644 --- a/packages/backend/src/core/AccountMoveService.ts +++ b/packages/backend/src/core/AccountMoveService.ts @@ -136,16 +136,12 @@ export class AccountMoveService { }, }); const followJobs: RelationshipJobData[] = []; - const unfollowJobs: RelationshipJobData[] = []; for (const following of followings) { if (!following.follower) continue; followJobs.push({ from: { id: following.follower.id }, to: { id: dst.id } }); - unfollowJobs.push({ from: { id: following.follower.id }, to: { id: src.id } }); } - // Should be queued because this can cause a number of follow/unfollow per one move. - // No need to care job orders as there should be no overlaps of follow/unfollow target. + // Should be queued because this can cause a number of follow per one move. this.queueService.createFollowJob(followJobs); - this.queueService.createUnfollowJob(unfollowJobs); } @bindThis