This commit is contained in:
syuilo 2023-05-07 11:31:32 +09:00
parent 1ff23d7a9d
commit 6ad9a9677a
2 changed files with 2 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 ?? '') : null,
} : {}),
...(opts.detail && isMe ? {

View File

@ -80,7 +80,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
isSilenced: isSilenced,
isSuspended: user.isSuspended,
lastActiveDate: user.lastActiveDate,
moderationNote: profile.moderationNote,
moderationNote: profile.moderationNote ?? '',
signins,
policies: await this.roleService.getUserPolicies(user.id),
roles: await this.roleEntityService.packMany(roles, me),