From 0b6293a66a2847961c7169c6ea2245fa2651e823 Mon Sep 17 00:00:00 2001 From: Soni L Date: Sun, 22 Jan 2023 09:42:11 -0300 Subject: [PATCH] Support web+ap in search --- app/javascript/mastodon/actions/search.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/javascript/mastodon/actions/search.js b/app/javascript/mastodon/actions/search.js index 666c6c223b8..c879254ed51 100644 --- a/app/javascript/mastodon/actions/search.js +++ b/app/javascript/mastodon/actions/search.js @@ -41,7 +41,7 @@ export function submitSearch() { api(getState).get('/api/v2/search', { params: { - q: value, + q: value.replace(/^web\+ap:\/\//, 'https://'), resolve: signedIn, limit: 5, }, @@ -91,7 +91,7 @@ export const expandSearch = type => (dispatch, getState) => { api(getState).get('/api/v2/search', { params: { - q: value, + q: value.replace(/^web\+ap:\/\//, 'https://'), type, offset, },