mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
message_edit: Output a list, not a reversed iterator.
A list_reverseiterator object is not JSON serializable, and orjson enforces this. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
03d2540899
commit
114b0a2982
@@ -90,7 +90,7 @@ def get_message_edit_history(request: HttpRequest, user_profile: UserProfile,
|
|||||||
|
|
||||||
# Fill in all the extra data that will make it usable
|
# Fill in all the extra data that will make it usable
|
||||||
fill_edit_history_entries(message_edit_history, message)
|
fill_edit_history_entries(message_edit_history, message)
|
||||||
return json_success({"message_history": reversed(message_edit_history)})
|
return json_success({"message_history": list(reversed(message_edit_history))})
|
||||||
|
|
||||||
PROPAGATE_MODE_VALUES = ["change_later", "change_one", "change_all"]
|
PROPAGATE_MODE_VALUES = ["change_later", "change_one", "change_all"]
|
||||||
@has_request_variables
|
@has_request_variables
|
||||||
|
|||||||
Reference in New Issue
Block a user