fix(backend/AccountMoveService): アカウント引っ越しの際にモデレーションノートに空の改行が足される問題を修正 (MisskeyIO#870)

This commit is contained in:
あわわわとーにゅ 2025-01-06 01:38:43 +09:00 committed by GitHub
parent 88a361e622
commit 3307f86586
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -274,12 +274,8 @@ export class AccountMoveService {
if (!srcprofile || !dstprofile) return; if (!srcprofile || !dstprofile) return;
await this.userProfilesRepository.update({ userId: dst.id }, { await this.userProfilesRepository.update({ userId: In([src.id, dst.id]) }, {
moderationNote: srcprofile.moderationNote + '\n' + dstprofile.moderationNote, moderationNote: (srcprofile.moderationNote + '\n' + dstprofile.moderationNote).trim(),
});
await this.userProfilesRepository.update({ userId: src.id }, {
moderationNote: srcprofile.moderationNote + '\n' + dstprofile.moderationNote,
}); });
} }