mirror of
https://github.com/discourse/discourse.git
synced 2024-12-19 22:04:30 +08:00
67cde14a61
This commit moves the business logic in the `Admin::UsersController#suspend` and `Admin::UsersController#silence` actions to dedicated service classes. There's no functional changes in this commit. Internal topic: t/130014.
25 lines
456 B
JSON
25 lines
456 B
JSON
{
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"silenced_till": {
|
|
"type": "string",
|
|
"example": "2022-06-01T08:00:00.000Z"
|
|
},
|
|
"reason": {
|
|
"type": "string"
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "Will send an email with this message when present"
|
|
},
|
|
"post_action": {
|
|
"type": "string",
|
|
"example": "delete"
|
|
}
|
|
},
|
|
"required": [
|
|
"silenced_till",
|
|
"reason"
|
|
]
|
|
}
|