mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-21 21:45:11 +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.startsWith('https://')) {
|
||||
if (query.startsWith('http://') || query.startsWith('https://')) {
|
||||
const promise = misskeyApi('ap/show', {
|
||||
uri: query,
|
||||
});
|
||||
|
|
|
@ -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,
|
||||
});
|
||||
|
|
|
@ -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,
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue