mirror of
https://github.com/wassname/talk.git
synced 2026-08-12 12:30:39 +08:00
Allow changing wordlist and domains using the updateSettings mutation
This commit is contained in:
+15
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user