mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 15:33:30 +00:00
The empty string shouldn't be a valid stream name.
(imported from commit 1fa878d7d51d3c3444ac75edf08b32f886683964)
This commit is contained in:
@@ -511,7 +511,7 @@ web interface.
|
||||
print
|
||||
|
||||
def valid_stream_name(name):
|
||||
return True
|
||||
return name != ""
|
||||
|
||||
def parse_zephyr_subs(verbose=False):
|
||||
zephyr_subscriptions = set()
|
||||
|
||||
@@ -765,7 +765,7 @@ def json_remove_subscription(request):
|
||||
return json_success({"data": sub_name})
|
||||
|
||||
def valid_stream_name(name):
|
||||
return True
|
||||
return name != ""
|
||||
|
||||
@login_required_api_view
|
||||
def api_subscribe(request, user_profile):
|
||||
|
||||
Reference in New Issue
Block a user