mirror of
https://github.com/wassname/talk.git
synced 2026-07-25 13:30:59 +08:00
Move "global switchoff" code from plugin to core
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user