mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Update property name to be more descriptive
- I wanted to trigger a build, since we had issues with our build server today. I think this naming is more in the direction we want to go, though. Maybe it could be makeShoutsPublic as @alina-beck used for the translation keys... what do you think @kachulio
This commit is contained in:
parent
6e3bd19267
commit
feb65a6c9c
@ -127,7 +127,7 @@ module.exports = {
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
},
|
||||
allowShouts: {
|
||||
showShoutsPublicly: {
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
},
|
||||
|
||||
@ -177,7 +177,7 @@ export default {
|
||||
'termsAndConditionsAgreedVersion',
|
||||
'termsAndConditionsAgreedAt',
|
||||
'allowEmbedIframes',
|
||||
'allowShouts',
|
||||
'showShoutsPublicly',
|
||||
],
|
||||
boolean: {
|
||||
followedByCurrentUser:
|
||||
|
||||
@ -28,7 +28,7 @@ type User {
|
||||
termsAndConditionsAgreedAt: String
|
||||
|
||||
allowEmbedIframes: Boolean
|
||||
allowShouts: Boolean
|
||||
showShoutsPublicly: Boolean
|
||||
locale: String
|
||||
friends: [User]! @relation(name: "FRIENDS", direction: "BOTH")
|
||||
friendsCount: Int! @cypher(statement: "MATCH (this)<-[: FRIENDS]->(r: User) RETURN COUNT(DISTINCT r)")
|
||||
@ -171,7 +171,7 @@ type Mutation {
|
||||
termsAndConditionsAgreedVersion: String
|
||||
termsAndConditionsAgreedAt: String
|
||||
allowEmbedIframes: Boolean
|
||||
allowShouts: Boolean
|
||||
showShoutsPublicly: Boolean
|
||||
|
||||
locale: String
|
||||
): User
|
||||
|
||||
@ -17,7 +17,7 @@ export default function create() {
|
||||
termsAndConditionsAgreedVersion: '0.0.1',
|
||||
termsAndConditionsAgreedAt: '2019-08-01T10:47:19.212Z',
|
||||
allowEmbedIframes: false,
|
||||
allowShouts: false,
|
||||
showShoutsPublicly: false,
|
||||
locale: 'en',
|
||||
}
|
||||
defaults.slug = slugify(defaults.name, { lower: true })
|
||||
|
||||
@ -146,12 +146,12 @@ export const allowEmbedIframesMutation = () => {
|
||||
`
|
||||
}
|
||||
|
||||
export const allowShoutsMutation = () => {
|
||||
export const showShoutsPubliclyMutation = () => {
|
||||
return gql`
|
||||
mutation($id: ID!, $allowShouts: Boolean) {
|
||||
UpdateUser(id: $id, allowShouts: $allowShouts) {
|
||||
mutation($id: ID!, $showShoutsPublicly: Boolean) {
|
||||
UpdateUser(id: $id, showShoutsPublicly: $showShoutsPublicly) {
|
||||
id
|
||||
allowShouts
|
||||
showShoutsPublicly
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
@ -87,7 +87,7 @@ export const actions = {
|
||||
contributionsCount
|
||||
commentedCount
|
||||
allowEmbedIframes
|
||||
allowShouts
|
||||
showShoutsPublicly
|
||||
termsAndConditionsAgreedVersion
|
||||
socialMedia {
|
||||
id
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user