mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Change default GQL 'UserQuery' to named 'profileUserQuery'
This commit is contained in:
parent
6d8149a77c
commit
13f2451e02
@ -7,7 +7,7 @@ import {
|
||||
commentFragment,
|
||||
} from './Fragments'
|
||||
|
||||
export default (i18n) => {
|
||||
export const profileUserQuery = (i18n) => {
|
||||
const lang = i18n.locale().toUpperCase()
|
||||
return gql`
|
||||
${userFragment}
|
||||
|
||||
@ -54,7 +54,7 @@ import mapboxgl from 'mapbox-gl'
|
||||
// import MapboxLanguage from '@mapbox/mapbox-gl-language'
|
||||
import { objectValuesToArray } from '../utils/utils'
|
||||
import { mapGetters } from 'vuex'
|
||||
import UserQuery from '~/graphql/User'
|
||||
import { profileUserQuery } from '~/graphql/User'
|
||||
|
||||
export default {
|
||||
name: 'Map',
|
||||
@ -164,7 +164,7 @@ export default {
|
||||
const {
|
||||
data: { User: users },
|
||||
} = await this.$apollo.query({
|
||||
query: UserQuery(this.$i18n),
|
||||
query: profileUserQuery(this.$i18n),
|
||||
variables: {
|
||||
id,
|
||||
followedByCount: 0,
|
||||
|
||||
@ -184,8 +184,7 @@ import MasonryGrid from '~/components/MasonryGrid/MasonryGrid.vue'
|
||||
import MasonryGridItem from '~/components/MasonryGrid/MasonryGridItem.vue'
|
||||
import TabNavigation from '~/components/_new/generic/TabNavigation/TabNavigation'
|
||||
import { profilePagePosts } from '~/graphql/PostQuery'
|
||||
import UserQuery from '~/graphql/User'
|
||||
import { updateUserMutation } from '~/graphql/User.js'
|
||||
import { profileUserQuery, updateUserMutation } from '~/graphql/User'
|
||||
import { muteUser, unmuteUser } from '~/graphql/settings/MutedUsers'
|
||||
import { blockUser, unblockUser } from '~/graphql/settings/BlockedUsers'
|
||||
import UpdateQuery from '~/components/utils/UpdateQuery'
|
||||
@ -408,7 +407,7 @@ export default {
|
||||
},
|
||||
User: {
|
||||
query() {
|
||||
return UserQuery(this.$i18n)
|
||||
return profileUserQuery(this.$i18n)
|
||||
},
|
||||
variables() {
|
||||
return {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user