Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
stream_create: Allow web public stream creation.
Aman Agrawalbed7c672ce5f
diff --git a/static/js/stream_create.js b/static/js/stream_create.jsindex 477ccece6e5..109e7fd511e 100644--- a/static/js/stream_create.js+++ b/static/js/stream_create.js@@ -170,26 +170,39 @@ function create_stream() {let invite_only;let history_public_to_subscribers;+ let is_web_public;const privacy_setting = $("#stream_creation_form input[name=privacy]:checked").val();switch (privacy_setting) {case "invite-only": {invite_only = true;history_public_to_subscribers = false;+ is_web_public = false;break;}case "invite-only-public-history": {invite_only = true;history_public_to_subscribers = true;+ is_web_public = false;++ break;+ }+ case "web-public": {+ invite_only = false;+ history_public_to_subscribers = true;+ is_web_public = true;break;}default: {invite_only = false;history_public_to_subscribers = true;+ is_web_public = false;}}++ data.is_web_public = JSON.stringify(is_web_public);data.invite_only = JSON.stringify(invite_only);data.history_public_to_subscribers = JSON.stringify(history_public_to_subscribers);