mirror of
https://github.com/zulip/zulip.git
synced 2026-07-09 21:21:47 +08:00
Add a json_success style result to updates responses.
(imported from commit 6492f98f1e1f5b7622caa2f3427ae60bdfd3df0e)
This commit is contained in:
parent
27fdb10cbd
commit
12ea2895ea
@ -204,6 +204,8 @@ def format_updates_response(messages, mit_sync_bot=False, apply_markdown=False,
|
||||
if mit_sync_bot:
|
||||
messages = [m for m in messages if not mit_sync_table.get(m.id)]
|
||||
return {'messages': [message.to_dict(apply_markdown) for message in messages],
|
||||
"result": "success",
|
||||
"msg": "",
|
||||
'where': where}
|
||||
|
||||
def return_messages_immediately(request, handler, user_profile, **kwargs):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user