diff --git a/packages/backend/src/core/activitypub/ApInboxService.ts b/packages/backend/src/core/activitypub/ApInboxService.ts index a95c178317..ff90af435b 100644 --- a/packages/backend/src/core/activitypub/ApInboxService.ts +++ b/packages/backend/src/core/activitypub/ApInboxService.ts @@ -771,17 +771,17 @@ export class ApInboxService { where: { followeeId: old_acc.id, followerHost: IsNull(), // follower is local - } + }, }); - followings.forEach(async (following) => { - if (!following.follower) return; + for (const following of followings) { + if (!following.follower) continue; try { await this.userFollowingService.follow(following.follower, new_acc); await this.userFollowingService.unfollow(following.follower, old_acc); } catch { /* empty */ } - }); + } return 'ok'; }