diff options
| author | かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com> | 2025-03-03 17:45:04 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-03 08:45:04 +0000 |
| commit | 59567a7ccce641ba520f7fb2829e5d017e2d2c32 (patch) | |
| tree | 146368788f1baf826fcc057e4a82a906051f1af2 /packages/frontend/src/pages/search.note.vue | |
| parent | Update CHANGELOG.md for #15532 (diff) | |
| download | misskey-59567a7ccce641ba520f7fb2829e5d017e2d2c32.tar.gz misskey-59567a7ccce641ba520f7fb2829e5d017e2d2c32.tar.bz2 misskey-59567a7ccce641ba520f7fb2829e5d017e2d2c32.zip | |
fix(frontend): 照会処理を統一 (#15536)
* fix(frontend): 照会処理を統一
* fix
* doLookup -> apLookup
Diffstat (limited to 'packages/frontend/src/pages/search.note.vue')
| -rw-r--r-- | packages/frontend/src/pages/search.note.vue | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/packages/frontend/src/pages/search.note.vue b/packages/frontend/src/pages/search.note.vue index a390e3fba1..32a35f8110 100644 --- a/packages/frontend/src/pages/search.note.vue +++ b/packages/frontend/src/pages/search.note.vue @@ -120,6 +120,7 @@ import { i18n } from '@/i18n.js'; import { instance } from '@/instance.js'; import * as os from '@/os.js'; import { misskeyApi } from '@/scripts/misskey-api.js'; +import { apLookup } from '@/scripts/lookup.js'; import { useRouter } from '@/router/supplier.js'; import MkButton from '@/components/MkButton.vue'; import MkFoldableSection from '@/components/MkFoldableSection.vue'; @@ -260,13 +261,7 @@ async function search() { text: i18n.ts.lookupConfirm, }); if (!confirm.canceled) { - const promise = misskeyApi('ap/show', { - uri: searchParams.value.query, - }); - - os.promiseDialog(promise, null, null, i18n.ts.fetchingAsApObject); - - const res = await promise; + const res = await apLookup(searchParams.value.query); if (res.type === 'User') { router.push(`/@${res.object.username}@${res.object.host}`); |