mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
add allowShouts mutation
This commit is contained in:
parent
9668351279
commit
044155a298
@ -17,6 +17,7 @@ export default function create() {
|
||||
termsAndConditionsAgreedVersion: '0.0.1',
|
||||
termsAndConditionsAgreedAt: '2019-08-01T10:47:19.212Z',
|
||||
allowEmbedIframes: false,
|
||||
allowShouts: false,
|
||||
locale: 'en',
|
||||
}
|
||||
defaults.slug = slugify(defaults.name, { lower: true })
|
||||
|
||||
@ -146,6 +146,17 @@ export const allowEmbedIframesMutation = () => {
|
||||
`
|
||||
}
|
||||
|
||||
export const allowShoutsMutation = () => {
|
||||
return gql`
|
||||
mutation($id: ID!, $allowShouts: Boolean) {
|
||||
UpdateUser(id: $id, allowShouts: $allowShouts) {
|
||||
id
|
||||
allowShouts
|
||||
}
|
||||
}
|
||||
`
|
||||
}
|
||||
|
||||
export const checkSlugAvailableQuery = gql`
|
||||
query($slug: String!) {
|
||||
User(slug: $slug) {
|
||||
|
||||
@ -87,6 +87,7 @@ export const actions = {
|
||||
contributionsCount
|
||||
commentedCount
|
||||
allowEmbedIframes
|
||||
allowShouts
|
||||
termsAndConditionsAgreedVersion
|
||||
socialMedia {
|
||||
id
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user