allow lookup / search for `http` URLs
This commit is contained in:
parent
2e55108b6b
commit
96d8432b85
|
@ -85,7 +85,7 @@ async function search() {
|
||||||
|
|
||||||
if (query == null || query === '') return;
|
if (query == null || query === '') return;
|
||||||
|
|
||||||
if (query.startsWith('https://')) {
|
if (query.startsWith('http://') || query.startsWith('https://')) {
|
||||||
const promise = misskeyApi('ap/show', {
|
const promise = misskeyApi('ap/show', {
|
||||||
uri: query,
|
uri: query,
|
||||||
});
|
});
|
||||||
|
|
|
@ -48,7 +48,7 @@ async function search() {
|
||||||
|
|
||||||
if (query == null || query === '') return;
|
if (query == null || query === '') return;
|
||||||
|
|
||||||
if (query.startsWith('https://')) {
|
if (query.startsWith('http://') || query.startsWith('https://')) {
|
||||||
const promise = misskeyApi('ap/show', {
|
const promise = misskeyApi('ap/show', {
|
||||||
uri: query,
|
uri: query,
|
||||||
});
|
});
|
||||||
|
|
|
@ -28,7 +28,7 @@ export async function lookup(router?: Router) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (query.startsWith('https://')) {
|
if (query.startsWith('http://') || query.startsWith('https://')) {
|
||||||
const promise = misskeyApi('ap/show', {
|
const promise = misskeyApi('ap/show', {
|
||||||
uri: query,
|
uri: query,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue