forked from woem.men/forkey
fix(backend/AccountMoveService): アカウント引っ越しの際にモデレーションノートに空の改行が足される問題を修正 (MisskeyIO#870)
This commit is contained in:
parent
88a361e622
commit
3307f86586
1 changed files with 2 additions and 6 deletions
|
@ -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,
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue