Skip to content
Snippets Groups Projects
Commit 061cc403 authored by Amelia Yukii's avatar Amelia Yukii
Browse files

merge: allow lookup / search for `http` URLs (!457)

View MR for information: !457



Approved-by: Luna's avatarLuna <her@mint.lgbt>
Approved-by: default avatarAmelia Yukii <amelia.yukii@shourai.de>
parents 5733190b 96d8432b
No related branches found
No related tags found
2 merge requests!485release 2024.3.2,!457allow lookup / search for `http` URLs
Pipeline #338 passed with stages
in 12 minutes and 13 seconds
......@@ -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,
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment