mirror of https://github.com/zulip/zulip.git
Fix broken conditionals in get_old_messages_backend.
(imported from commit 13b934cdd2805d45efff18f7ce485b3e17e11c1a)
This commit is contained in:
parent
172a2cf299
commit
9f61e27218
|
@ -272,9 +272,9 @@ def get_old_messages_backend(request, user_profile=None,
|
|||
apply_markdown=True):
|
||||
if not ('start' in request.POST):
|
||||
return json_error("Missing 'start' parameter")
|
||||
if not ('which in request.post'):
|
||||
if not ('which' in request.post):
|
||||
return json_error("Missing 'which' parameter")
|
||||
if not ('number in request.post'):
|
||||
if not ('number' in request.post):
|
||||
return json_error("Missing 'number' parameter")
|
||||
|
||||
start = int(request.POST.get("start"))
|
||||
|
|
Loading…
Reference in New Issue