diff options
| author | tamaina <tamaina@hotmail.co.jp> | 2025-08-26 07:43:59 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-26 07:43:59 +0900 |
| commit | 7e7dc03796ffb852056aa1720ebe897aae5ceeb9 (patch) | |
| tree | d016f4c8261f347e72380bc8aa3236762d8d1b5b /packages/frontend/src/utility | |
| parent | remove unused file (diff) | |
| download | misskey-7e7dc03796ffb852056aa1720ebe897aae5ceeb9.tar.gz misskey-7e7dc03796ffb852056aa1720ebe897aae5ceeb9.tar.bz2 misskey-7e7dc03796ffb852056aa1720ebe897aae5ceeb9.zip | |
fix(frontend): ap/showでローカルユーザーを解決した際@username@nullに飛ばされる問題を修正 (#16460)
Diffstat (limited to 'packages/frontend/src/utility')
| -rw-r--r-- | packages/frontend/src/utility/lookup.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/frontend/src/utility/lookup.ts b/packages/frontend/src/utility/lookup.ts index 47d0db125d..9baf40b731 100644 --- a/packages/frontend/src/utility/lookup.ts +++ b/packages/frontend/src/utility/lookup.ts @@ -8,6 +8,7 @@ import * as os from '@/os.js'; import { misskeyApi } from '@/utility/misskey-api.js'; import { i18n } from '@/i18n.js'; import { mainRouter } from '@/router.js'; +import { acct } from '@/filters/user'; export async function lookup(router?: Router) { const _router = router ?? mainRouter; @@ -38,7 +39,7 @@ export async function lookup(router?: Router) { if (res.type === 'User') { _router.push('/@:acct/:page?', { params: { - acct: `${res.object.username}@${res.object.host}`, + acct: acct(res.object), }, }); } else if (res.type === 'Note') { |