mirror of
https://github.com/zulip/zulip.git
synced 2025-10-31 20:13:46 +00:00
event_queue: Convert users argument of send_event to list.
set 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
fe5c524890
commit
25c20a21bd
@@ -1184,5 +1184,5 @@ def send_event(realm: Realm, event: Mapping[str, Any],
|
||||
the user/message pair."""
|
||||
port = get_tornado_port(realm)
|
||||
queue_json_publish(notify_tornado_queue_name(port),
|
||||
dict(event=event, users=users),
|
||||
dict(event=event, users=list(users)),
|
||||
lambda *args, **kwargs: send_notification_http(realm, *args, **kwargs))
|
||||
|
||||
Reference in New Issue
Block a user