Make client_id parameter in api_get_messages optional

(imported from commit a3221fe73f63c2cfa8f87b6059283a9aa0e8b8e4)
This commit is contained in:
Zev Benjamin
2012-11-09 11:02:25 -05:00
parent 3df5d0faf3
commit fd51cf343b

View File

@@ -240,7 +240,7 @@ def json_get_updates(request, user_profile, handler):
@asynchronous @asynchronous
@authenticated_api_view @authenticated_api_view
@has_request_variables @has_request_variables
def api_get_messages(request, user_profile, handler, client_id=POST): def api_get_messages(request, user_profile, handler, client_id=POST(default=None)):
return get_updates_backend(request, user_profile, handler, client_id, return get_updates_backend(request, user_profile, handler, client_id,
apply_markdown=(request.POST.get("apply_markdown") is not None), apply_markdown=(request.POST.get("apply_markdown") is not None),
mirror=request.POST.get("mirror")) mirror=request.POST.get("mirror"))