From 7f287e0c3a718e5c299b9958707a762c7e70442f Mon Sep 17 00:00:00 2001 From: Namekuji Date: Mon, 17 Apr 2023 12:03:26 -0400 Subject: [PATCH] force follow if any error happens --- packages/backend/src/core/AccountMoveService.ts | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/packages/backend/src/core/AccountMoveService.ts b/packages/backend/src/core/AccountMoveService.ts index 2babcab555..6d12f682f1 100644 --- a/packages/backend/src/core/AccountMoveService.ts +++ b/packages/backend/src/core/AccountMoveService.ts @@ -129,11 +129,15 @@ export class AccountMoveService { @bindThis public async move(src: User, dst: User): Promise { // Copy blockings and mutings, and update lists - await Promise.all([ - this.copyBlocking(src, dst), - this.copyMutings(src, dst), - this.updateLists(src, dst), - ]); + try { + await Promise.all([ + this.copyBlocking(src, dst), + this.copyMutings(src, dst), + this.updateLists(src, dst), + ]); + } catch { + /* skip if any error happens */ + } // follow the new account and unfollow the old one const proxy = await this.proxyAccountService.fetch();