mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-21 17:30:58 +08:00
Adds a new `bypass_bump` parameter to the post update endpoint that allows privileged users (staff and TL4) to update a post without bumping the topic. The parameter can be passed as either a query param (`?bypass_bump=true`) or in the request body (`post[bypass_bump]=true`). When omitted, behavior is unchanged - edits to the last post in a topic will bump it as usual. Closes #34712 Co-authored-by: Ethan M <176145523+Ethsim12@users.noreply.github.com>
22 lines
472 B
JSON
Vendored
22 lines
472 B
JSON
Vendored
{
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"post": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"raw": {
|
|
"type": "string"
|
|
},
|
|
"edit_reason": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": ["raw"]
|
|
},
|
|
"bypass_bump": {
|
|
"type": "boolean",
|
|
"description": "Skip bumping the topic when updating the post. Requires staff or TL4 permissions."
|
|
}
|
|
}
|
|
}
|