From 0d78cacffc292b5ef41529d551a42308c5caee52 Mon Sep 17 00:00:00 2001 From: Namekuji Date: Thu, 20 Apr 2023 19:13:35 -0400 Subject: [PATCH] fix newUri --- 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 381d464d51..4f6f241b3d 100644 --- a/packages/backend/src/core/UserFollowingService.ts +++ b/packages/backend/src/core/UserFollowingService.ts @@ -152,8 +152,8 @@ export class UserFollowingService implements OnModuleInit { } if (movedFollower.alsoKnownAs) { - const newUri = this.userEntityService.isLocalUser(movedFollower) ? movedFollower.uri : `${this.config.url}/users/${movedFollower.id}`; - + const newUri = this.userEntityService.isRemoteUser(movedFollower) ? movedFollower.uri : `${this.config.url}/users/${movedFollower.id}`; + for (const oldUri of movedFollower.alsoKnownAs) { try { let oldAccount = await this.apPersonService.fetchPerson(oldUri);