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:
parent
628dcbb732
commit
0b6293a66a
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue