Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
apidocs: Move stray message history description to OpenAPI.
Suyash Vardhan Mathuraedca6d6c6e9
diff --git a/templates/zerver/api/get-message-history.md b/templates/zerver/api/get-message-history.mdindex 61ab20b264b..45aa89e4ca2 100644--- a/templates/zerver/api/get-message-history.md+++ b/templates/zerver/api/get-message-history.md@@ -27,16 +27,6 @@{generate_return_values_table|zulip.yaml|/messages/{message_id}/history:get}-Please note that the original message's snapshot only contains the fields-`topic`, `content`, `rendered_content`, `timestamp` and `user_id`. This-snapshot will be the only one present if the message has never been edited.--Also note that if a message's content was edited (but not the topic)-or the topic was edited (but not the content), the snapshot object-will only contain data for the modified fields (e.g. if only the topic-was edited, `prev_content`, `prev_rendered_content`, and-`content_html_diff` will not appear).-{generate_response_description(/messages/{message_id}/history:get)}#### Example responsediff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yamlindex 67714e0b73c..9c9d4672c28 100644--- a/zerver/openapi/zulip.yaml+++ b/zerver/openapi/zulip.yaml@@ -4471,6 +4471,16 @@ paths:[edit-settings]: /help/view-a-messages-edit-historyparameters:- $ref: "#/components/parameters/MessageId"+ x-response-description: |+ Please note that the original message's snapshot only contains the fields+ `topic`, `content`, `rendered_content`, `timestamp` and `user_id`. This+ snapshot will be the only one present if the message has never been edited.++ Also note that if a message's content was edited (but not the topic)+ or the topic was edited (but not the content), the snapshot object+ will only contain data for the modified fields (e.g. if only the topic+ was edited, `prev_content`, `prev_rendered_content`, and+ `content_html_diff` will not appear).responses:"200":description: Success.