diff --git a/packages/frontend/src/pages/search.note.vue b/packages/frontend/src/pages/search.note.vue index 33de0d72c..525e71cf0 100644 --- a/packages/frontend/src/pages/search.note.vue +++ b/packages/frontend/src/pages/search.note.vue @@ -85,7 +85,7 @@ async function search() { if (query == null || query === '') return; - if (query.startsWith('https://')) { + if (query.startsWith('http://') || query.startsWith('https://')) { const promise = misskeyApi('ap/show', { uri: query, }); diff --git a/packages/frontend/src/pages/search.user.vue b/packages/frontend/src/pages/search.user.vue index dad9cd910..8dda3b5b0 100644 --- a/packages/frontend/src/pages/search.user.vue +++ b/packages/frontend/src/pages/search.user.vue @@ -48,7 +48,7 @@ async function search() { if (query == null || query === '') return; - if (query.startsWith('https://')) { + if (query.startsWith('http://') || query.startsWith('https://')) { const promise = misskeyApi('ap/show', { uri: query, }); diff --git a/packages/frontend/src/scripts/lookup.ts b/packages/frontend/src/scripts/lookup.ts index 7f020b15c..db3a96b15 100644 --- a/packages/frontend/src/scripts/lookup.ts +++ b/packages/frontend/src/scripts/lookup.ts @@ -28,7 +28,7 @@ export async function lookup(router?: Router) { return; } - if (query.startsWith('https://')) { + if (query.startsWith('http://') || query.startsWith('https://')) { const promise = misskeyApi('ap/show', { uri: query, });