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', {
|
api(getState).get('/api/v2/search', {
|
||||||
params: {
|
params: {
|
||||||
q: value,
|
q: value.replace(/^web\+ap:\/\//, 'https://'),
|
||||||
resolve: signedIn,
|
resolve: signedIn,
|
||||||
limit: 5,
|
limit: 5,
|
||||||
},
|
},
|
||||||
|
@ -91,7 +91,7 @@ export const expandSearch = type => (dispatch, getState) => {
|
||||||
|
|
||||||
api(getState).get('/api/v2/search', {
|
api(getState).get('/api/v2/search', {
|
||||||
params: {
|
params: {
|
||||||
q: value,
|
q: value.replace(/^web\+ap:\/\//, 'https://'),
|
||||||
type,
|
type,
|
||||||
offset,
|
offset,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue