1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Support web+ap in search

This commit is contained in:
Soni L 2023-01-22 09:42:11 -03:00 committed by GitHub
parent 628dcbb732
commit 0b6293a66a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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