diff --git a/CHANGELOG_YOJO.md b/CHANGELOG_YOJO.md index 0b55856162..19df5d0342 100644 --- a/CHANGELOG_YOJO.md +++ b/CHANGELOG_YOJO.md @@ -24,6 +24,7 @@ ### Client - Fix: 非ログインでリバーシの戦績が見れない不具合の修正 [#404](https://github.com/yojo-art/cherrypick/pull/404) +- Enhance: ユーザー概要の...からサーバー情報にリンクを追加 [#406](https://github.com/yojo-art/cherrypick/pull/406) ### Server - diff --git a/packages/frontend/src/scripts/get-user-menu.ts b/packages/frontend/src/scripts/get-user-menu.ts index 62afd7aa37..b6d821c273 100644 --- a/packages/frontend/src/scripts/get-user-menu.ts +++ b/packages/frontend/src/scripts/get-user-menu.ts @@ -217,6 +217,13 @@ export function getUserMenu(user: Misskey.entities.UserDetailed, router: IRouter if (user.url == null) return; window.open(user.url, '_blank', 'noopener'); }, + }] : []), ...(user.host != null ? [{ + icon: 'ti ti-server', + text: i18n.ts.instanceInfo, + action: () => { + if (user.host == null) return; + router.push(`/instance-info/${user.host}`); + }, }] : []), { icon: 'ti ti-share', text: i18n.ts.copyProfileUrl,