Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
create_user: Fix comment in set_up_streams_for_new_human_user.
Sahil Batra5737d4c4837b
diff --git a/zerver/actions/create_user.py b/zerver/actions/create_user.pyindex ef6a1faf797..41c7a6db66e 100644--- a/zerver/actions/create_user.py+++ b/zerver/actions/create_user.py@@ -140,11 +140,11 @@ def set_up_streams_for_new_human_user(acting_user = Noneif add_initial_stream_subscriptions:- # If the Preregistration object didn't explicitly list some streams (it- # happens when user directly signs up without any invitation), we add the- # default streams for the realm. Note that we are fine with "slim" Stream- # objects for calling bulk_add_subscriptions and add_new_user_history,- # which we verify in StreamSetupTest tests that check query counts.+ # If prereg_user.include_realm_default_subscriptions is true, we+ # add the default streams for the realm to the list of streams.+ # Note that we are fine with "slim" Stream objects for calling+ # bulk_add_subscriptions and add_new_user_history, which we verify+ # in StreamSetupTest tests that check query counts.if prereg_user is None or prereg_user.include_realm_default_subscriptions:default_streams = get_slim_realm_default_streams(realm.id)streams = list(set(streams) | set(default_streams))