diff --git a/backend/src/seed/factories/users.js b/backend/src/seed/factories/users.js index 99e2681c9..f56f759f1 100644 --- a/backend/src/seed/factories/users.js +++ b/backend/src/seed/factories/users.js @@ -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 }) diff --git a/webapp/graphql/User.js b/webapp/graphql/User.js index e82280689..7fbd513aa 100644 --- a/webapp/graphql/User.js +++ b/webapp/graphql/User.js @@ -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) { diff --git a/webapp/store/auth.js b/webapp/store/auth.js index 90c59a8f5..026c8be64 100644 --- a/webapp/store/auth.js +++ b/webapp/store/auth.js @@ -87,6 +87,7 @@ export const actions = { contributionsCount commentedCount allowEmbedIframes + allowShouts termsAndConditionsAgreedVersion socialMedia { id