1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-02 00:38:14 +09:00
This commit is contained in:
syuilo 2023-05-07 12:04:16 +09:00
parent 29a84230b0
commit 95e7e003fd
2 changed files with 1 additions and 2 deletions

View File

@ -412,7 +412,7 @@ export class UserEntityService implements OnModuleInit {
userId: meId,
targetUserId: user.id,
}).then(row => row?.memo ?? null),
moderationNote: iAmModerator ? (profile!.moderationNote ?? '') : null,
moderationNote: iAmModerator ? (profile!.moderationNote ?? '') : undefined,
} : {}),
...(opts.detail && isMe ? {

View File

@ -112,7 +112,6 @@ describe('ユーザー', () => {
securityKeys: user.securityKeys,
roles: user.roles,
memo: user.memo,
moderationNote: user.moderationNote,
});
};