forked from mirror/misskey
fix test
This commit is contained in:
parent
1ff23d7a9d
commit
6ad9a9677a
@ -412,7 +412,7 @@ export class UserEntityService implements OnModuleInit {
|
|||||||
userId: meId,
|
userId: meId,
|
||||||
targetUserId: user.id,
|
targetUserId: user.id,
|
||||||
}).then(row => row?.memo ?? null),
|
}).then(row => row?.memo ?? null),
|
||||||
moderationNote: iAmModerator ? profile!.moderationNote : null,
|
moderationNote: iAmModerator ? (profile!.moderationNote ?? '') : null,
|
||||||
} : {}),
|
} : {}),
|
||||||
|
|
||||||
...(opts.detail && isMe ? {
|
...(opts.detail && isMe ? {
|
||||||
|
@ -80,7 +80,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
|
|||||||
isSilenced: isSilenced,
|
isSilenced: isSilenced,
|
||||||
isSuspended: user.isSuspended,
|
isSuspended: user.isSuspended,
|
||||||
lastActiveDate: user.lastActiveDate,
|
lastActiveDate: user.lastActiveDate,
|
||||||
moderationNote: profile.moderationNote,
|
moderationNote: profile.moderationNote ?? '',
|
||||||
signins,
|
signins,
|
||||||
policies: await this.roleService.getUserPolicies(user.id),
|
policies: await this.roleService.getUserPolicies(user.id),
|
||||||
roles: await this.roleEntityService.packMany(roles, me),
|
roles: await this.roleEntityService.packMany(roles, me),
|
||||||
|
Loading…
Reference in New Issue
Block a user