mirror of
https://github.com/zulip/zulip.git
synced 2025-11-19 05:58:25 +00:00
actions: Allow leaving stream args unspecified in set_default_streams.
Sets them to the create_stream_if_needed defaults.
This commit is contained in:
@@ -2421,8 +2421,8 @@ def set_default_streams(realm, stream_dict):
|
|||||||
stream_names.append(name)
|
stream_names.append(name)
|
||||||
stream, _ = create_stream_if_needed(realm,
|
stream, _ = create_stream_if_needed(realm,
|
||||||
name,
|
name,
|
||||||
invite_only = options["invite_only"],
|
invite_only = options.get("invite_only", False),
|
||||||
stream_description = options["description"])
|
stream_description = options.get("description", ''))
|
||||||
DefaultStream.objects.create(stream=stream, realm=realm)
|
DefaultStream.objects.create(stream=stream, realm=realm)
|
||||||
|
|
||||||
# Always include the realm's default notifications streams, if it exists
|
# Always include the realm's default notifications streams, if it exists
|
||||||
|
|||||||
Reference in New Issue
Block a user