mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
message_fetch: Use strings as dict keys.
JSON keys must be strings, and orjson enforces this. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
3e7503a607
commit
36bae2e86c
@@ -1146,7 +1146,8 @@ def messages_in_narrow_backend(request: HttpRequest, user_profile: UserProfile,
|
|||||||
topic_matches = row['topic_matches']
|
topic_matches = row['topic_matches']
|
||||||
else:
|
else:
|
||||||
content_matches = topic_matches = []
|
content_matches = topic_matches = []
|
||||||
search_fields[message_id] = get_search_fields(rendered_content, topic_name,
|
search_fields[str(message_id)] = get_search_fields(
|
||||||
content_matches, topic_matches)
|
rendered_content, topic_name, content_matches, topic_matches,
|
||||||
|
)
|
||||||
|
|
||||||
return json_success({"messages": search_fields})
|
return json_success({"messages": search_fields})
|
||||||
|
|||||||
Reference in New Issue
Block a user