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)
This commit is contained in:
Tim Abbott 2013-06-24 15:23:45 -04:00
parent 2a9498dfd3
commit 238f4a6362
1 changed files with 3 additions and 0 deletions

View File

@ -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