Skip to content

Commit

Permalink
fix(backend): アドレス入力で直接ユーザのプロフィールページを表示した際、前提データが足りず描画に失敗する (misskey-…
Browse files Browse the repository at this point in the history
…dev#15033)

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

* fix CHANGELOG.md
  • Loading branch information
samunohito authored Nov 23, 2024
1 parent 00301ed commit a77ad7a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- Fix: 画面サイズが変わった際にナビゲーションバーが自動で折りたたまれない問題を修正

### Server
-
- Fix: ユーザーのプロフィール画面をアドレス入力などで直接表示した際に概要タブの描画に失敗する問題の修正( #15032 )


## 2024.11.0
Expand Down
5 changes: 4 additions & 1 deletion packages/backend/src/server/web/ClientServerService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,10 @@ export class ClientServerService {
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', {
user, profile, me,
Expand Down

0 comments on commit a77ad7a

Please sign in to comment.