From 4ffc6a2de12b700e33ff772b9c7480d71eb583b1 Mon Sep 17 00:00:00 2001 From: Zev Benjamin Date: Mon, 14 Jan 2013 15:40:42 -0500 Subject: [PATCH] When subscribing to streams, send back the canonical stream name (imported from commit 7803409878cca4627447bc64735ad71f56701a5c) --- zephyr/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zephyr/views.py b/zephyr/views.py index a6aa24be64..9e1e00669a 100644 --- a/zephyr/views.py +++ b/zephyr/views.py @@ -868,9 +868,9 @@ def add_subscriptions_backend(request, user_profile, stream = create_stream_if_needed(subscriber.realm, stream_name) did_subscribe = do_add_subscription(subscriber, stream) if did_subscribe: - result["subscribed"].append(stream_name) + result["subscribed"].append(stream.name) else: - result["already_subscribed"].append(stream_name) + result["already_subscribed"].append(stream.name) # Inform the user if someone else subscribed them to stuff if subscriber != user_profile and result["subscribed"]: