mirror of https://github.com/zulip/zulip.git
events: Remove incorrect line from new-stream handler.
This line was effectively hardcoding a specific stream_post_policy, overriding the value already present in the event, to no purpose. (I believe it got here via cargo-culting induced by #13787.)
This commit is contained in:
parent
791e5de5de
commit
59b68aaa98
|
@ -521,8 +521,13 @@ def apply_event(state: Dict[str, Any],
|
|||
stream_data = copy.deepcopy(stream)
|
||||
if include_subscribers:
|
||||
stream_data['subscribers'] = []
|
||||
|
||||
# We know the stream has no traffic, and this
|
||||
# field is not present in the event.
|
||||
#
|
||||
# TODO: Probably this should just be added to the event.
|
||||
stream_data['stream_weekly_traffic'] = None
|
||||
stream_data['stream_post_policy'] = Stream.STREAM_POST_POLICY_EVERYONE
|
||||
|
||||
# Add stream to never_subscribed (if not invite_only)
|
||||
state['never_subscribed'].append(stream_data)
|
||||
state['streams'].append(stream)
|
||||
|
|
Loading…
Reference in New Issue