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, },