remove search1 with_relationships
This commit is contained in:
parent
355281081a
commit
9c7cb3a954
2 changed files with 4 additions and 5 deletions
|
@ -428,8 +428,8 @@ const users = {
|
|||
store.commit('setUserForNotification', notification)
|
||||
})
|
||||
},
|
||||
searchUsers (store, { query, withRelationships }) {
|
||||
return store.rootState.api.backendInteractor.searchUsers({ query, withRelationships })
|
||||
searchUsers (store, { query }) {
|
||||
return store.rootState.api.backendInteractor.searchUsers({ query })
|
||||
.then((users) => {
|
||||
store.commit('addNewUsers', users)
|
||||
return users
|
||||
|
|
|
@ -937,13 +937,12 @@ const reportUser = ({ credentials, userId, statusIds, comment, forward }) => {
|
|||
})
|
||||
}
|
||||
|
||||
const searchUsers = ({ credentials, query, withRelationships }) => {
|
||||
const searchUsers = ({ credentials, query }) => {
|
||||
return promisedRequest({
|
||||
url: MASTODON_USER_SEARCH_URL,
|
||||
params: {
|
||||
q: query,
|
||||
resolve: true,
|
||||
with_relationships: !!withRelationships
|
||||
resolve: true
|
||||
},
|
||||
credentials
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue