remove search1 with_relationships

This commit is contained in:
Shpuld Shpuldson 2020-05-13 18:04:30 +03:00
parent 355281081a
commit 9c7cb3a954
2 changed files with 4 additions and 5 deletions

View file

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

View file

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