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 and Sayamame-beans committed Dec 29, 2024
1 parent 9c1c676 commit afd9d0b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 2024.11.0-kinel.2

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

## 2024.11.0-kinel.1
## 2024.11.0 (merged to 2024.11.0-kinel.1)

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 afd9d0b

Please sign in to comment.