Move "global switchoff" code from plugin to core

This commit is contained in:
Fabian Neumann
2018-05-11 11:28:58 +02:00
parent fab15daacd
commit 48fc3ab5db
24 changed files with 105 additions and 150 deletions
+14
View File
@@ -837,6 +837,13 @@ type Settings {
# closed.
closedMessage: String
# globalSwitchoffEnable will disable commenting site-wide.
globalSwitchoffEnable: Boolean
# globalSwitchoffMessage will be shown above the comment stream while
# commenting is disabled site-wide.
globalSwitchoffMessage: String
# editCommentWindowLength is the length of time (in milliseconds) after a
# comment is posted that it can still be edited by the author.
editCommentWindowLength: Int
@@ -1300,6 +1307,13 @@ input UpdateSettingsInput {
# closed.
closedMessage: String
# globalSwitchoffEnable will disable commenting site-wide.
globalSwitchoffEnable: Boolean
# globalSwitchoffMessage will be shown above the comment stream while
# commenting is disabled site-wide.
globalSwitchoffMessage: String
# charCountEnable is true when the character count restriction is enabled.
charCountEnable: Boolean