mirror of https://github.com/zulip/zulip.git
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:
parent
2a9498dfd3
commit
238f4a6362
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue