From 238f4a63627e9ab642bcbbf497682ea35adde13d Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Mon, 24 Jun 2013 15:23:45 -0400 Subject: [PATCH] API: Fix broken list_subscriptions call in REST API. Previously, it always failed because we had hooked up the API endpoint to a function that doesn't exist. (imported from commit b5269f6d8e385facae4362742fe69a422f6315b7) --- zephyr/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zephyr/views.py b/zephyr/views.py index 014f6cf421..e873628eeb 100644 --- a/zephyr/views.py +++ b/zephyr/views.py @@ -1189,6 +1189,9 @@ def get_public_streams_backend(request, user_profile): @authenticated_api_view def api_list_subscriptions(request, user_profile): + return list_subscriptions_backend(request, user_profile) + +def list_subscriptions_backend(request, user_profile): return json_success({"subscriptions": gather_subscriptions(user_profile)[0]}) @authenticated_json_post_view