diff --git a/zephyr/views.py b/zephyr/views.py index 5f66d2b55d..1ad9cc4b6e 100644 --- a/zephyr/views.py +++ b/zephyr/views.py @@ -584,7 +584,7 @@ def json_add_subscription(request): def add_subscriptions_backend(request, user_profile, streams): subscribed = [] already_subscribed = [] - for stream_name in streams: + for stream_name in list(set(streams)): stream = create_stream_if_needed(user_profile.realm, stream_name) recipient = Recipient.objects.get(type_id=stream.id, type=Recipient.STREAM)