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) store.commit('setUserForNotification', notification)
}) })
}, },
searchUsers (store, { query, withRelationships }) { searchUsers (store, { query }) {
return store.rootState.api.backendInteractor.searchUsers({ query, withRelationships }) return store.rootState.api.backendInteractor.searchUsers({ query })
.then((users) => { .then((users) => {
store.commit('addNewUsers', users) store.commit('addNewUsers', users)
return 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({ return promisedRequest({
url: MASTODON_USER_SEARCH_URL, url: MASTODON_USER_SEARCH_URL,
params: { params: {
q: query, q: query,
resolve: true, resolve: true
with_relationships: !!withRelationships
}, },
credentials credentials
}) })