diff options
Diffstat (limited to 'packages/frontend/src/scripts/gen-search-query.ts')
| -rw-r--r-- | packages/frontend/src/scripts/gen-search-query.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/frontend/src/scripts/gen-search-query.ts b/packages/frontend/src/scripts/gen-search-query.ts index 97462f3f09..1a5e520d29 100644 --- a/packages/frontend/src/scripts/gen-search-query.ts +++ b/packages/frontend/src/scripts/gen-search-query.ts @@ -3,7 +3,7 @@ * SPDX-License-Identifier: AGPL-3.0-only */ -import * as Acct from 'misskey-js/built/acct'; +import * as Misskey from 'misskey-js'; import { host as localHost } from '@/config'; export async function genSearchQuery(v: any, q: string) { @@ -18,7 +18,7 @@ export async function genSearchQuery(v: any, q: string) { host = at; } } else { - const user = await v.os.api('users/show', Acct.parse(at)).catch(x => null); + const user = await v.os.api('users/show', Misskey.acct.parse(at)).catch(x => null); if (user) { userId = user.id; } else { |