Allow changing wordlist and domains using the updateSettings mutation

This commit is contained in:
Chi Vinh Le
2017-10-09 16:51:27 +07:00
parent 0a190a9838
commit c52e42c644
4 changed files with 66 additions and 6 deletions
+15 -2
View File
@@ -1217,6 +1217,12 @@ input UpdateSettingsInput {
# editCommentWindowLength is the length of time (in milliseconds) after a
# comment is posted that it can still be edited by the author.
editCommentWindowLength: Int
# wordlist allows chaninging the available wordlists.
wordlist: UpdateWordlistInput
# domains allows changing the available lists of domains.
domains: UpdateDomainsInput
}
# UpdateSettingsResponse contains any errors that were rendered as a result
@@ -1231,10 +1237,17 @@ type UpdateSettingsResponse implements Response {
input UpdateWordlistInput {
# banned words will by default reject the comment if it is found.
banned: [String!]!
banned: [String!]
# suspect words will simply flag the comment.
suspect: [String!]!
suspect: [String!]
}
# UpdateDomainsInput describes all the available lists of domains.
input UpdateDomainsInput {
# whitelist is the list of domains that the embed is allowed to render on.
whitelist: [String!]
}
# UpdateWordlistResponse contains any errors that were rendered as a result