fix(backend): アドレス入力で直接ユーザのプロフィールページを表示した際、前提データが足りず描画に失敗する

This commit is contained in:
おさむのひと 2024-11-23 09:20:08 +09:00
parent 872cefcfb8
commit 103233d5b8
1 changed files with 4 additions and 1 deletions

View File

@ -585,7 +585,10 @@ export class ClientServerService {
reply.header('X-Robots-Tag', 'noai'); reply.header('X-Robots-Tag', 'noai');
} }
const _user = await this.userEntityService.pack(user); const _user = await this.userEntityService.pack(user, null, {
schema: 'UserDetailed',
userProfile: profile,
});
return await reply.view('user', { return await reply.view('user', {
user, profile, me, user, profile, me,