From 3307f865867791b2686b0846588cadac8a98aa99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=82=E3=82=8F=E3=82=8F=E3=82=8F=E3=81=A8=E3=83=BC?= =?UTF-8?q?=E3=81=AB=E3=82=85?= <17376330+u1-liquid@users.noreply.github.com> Date: Mon, 6 Jan 2025 01:38:43 +0900 Subject: [PATCH] =?UTF-8?q?fix(backend/AccountMoveService):=20=E3=82=A2?= =?UTF-8?q?=E3=82=AB=E3=82=A6=E3=83=B3=E3=83=88=E5=BC=95=E3=81=A3=E8=B6=8A?= =?UTF-8?q?=E3=81=97=E3=81=AE=E9=9A=9B=E3=81=AB=E3=83=A2=E3=83=87=E3=83=AC?= =?UTF-8?q?=E3=83=BC=E3=82=B7=E3=83=A7=E3=83=B3=E3=83=8E=E3=83=BC=E3=83=88?= =?UTF-8?q?=E3=81=AB=E7=A9=BA=E3=81=AE=E6=94=B9=E8=A1=8C=E3=81=8C=E8=B6=B3?= =?UTF-8?q?=E3=81=95=E3=82=8C=E3=82=8B=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3=20(MisskeyIO#870)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/backend/src/core/AccountMoveService.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/backend/src/core/AccountMoveService.ts b/packages/backend/src/core/AccountMoveService.ts index ec615fb255f8..4407c9b7c063 100644 --- a/packages/backend/src/core/AccountMoveService.ts +++ b/packages/backend/src/core/AccountMoveService.ts @@ -274,12 +274,8 @@ export class AccountMoveService { if (!srcprofile || !dstprofile) return; - await this.userProfilesRepository.update({ userId: dst.id }, { - moderationNote: srcprofile.moderationNote + '\n' + dstprofile.moderationNote, - }); - - await this.userProfilesRepository.update({ userId: src.id }, { - moderationNote: srcprofile.moderationNote + '\n' + dstprofile.moderationNote, + await this.userProfilesRepository.update({ userId: In([src.id, dst.id]) }, { + moderationNote: (srcprofile.moderationNote + '\n' + dstprofile.moderationNote).trim(), }); }