From 6b75bd33b94e94cb40f468eaf71c561866111d22 Mon Sep 17 00:00:00 2001 From: tamaina Date: Thu, 20 Apr 2023 20:55:41 +0000 Subject: [PATCH] =?UTF-8?q?newUri=E3=82=92=E5=A4=96=E3=81=AB=E5=87=BA?= =?UTF-8?q?=E3=81=992?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/backend/src/core/UserFollowingService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/core/UserFollowingService.ts b/packages/backend/src/core/UserFollowingService.ts index 5e966f814e..78f5d78391 100644 --- a/packages/backend/src/core/UserFollowingService.ts +++ b/packages/backend/src/core/UserFollowingService.ts @@ -151,9 +151,9 @@ export class UserFollowingService implements OnModuleInit { movedFollower = await this.apPersonService.fetchPerson(movedFollower.uri) ?? follower; } - const newUri = this.userEntityService.isLocalUser(movedFollower) ? movedFollower.uri : `${this.config.url}/users/${movedFollower.id}`; - if (movedFollower.alsoKnownAs) { + const newUri = this.userEntityService.isLocalUser(movedFollower) ? movedFollower.uri : `${this.config.url}/users/${movedFollower.id}`; + for (const oldUri of movedFollower.alsoKnownAs) { try { let oldAccount = await this.apPersonService.fetchPerson(oldUri);