mirror of
https://codeberg.org/yeentown/barkey
synced 2024-12-01 23:27:25 +00:00
allow lookup / search for http
URLs
This commit is contained in:
parent
2e55108b6b
commit
96d8432b85
3 changed files with 3 additions and 3 deletions
|
@ -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 a new issue