mirror of https://github.com/zulip/zulip.git
Clean up user_profile getting.
(imported from commit 86be3c8061ac46510d240703c8e88eedb0883a8c)
This commit is contained in:
parent
d8ade6de5b
commit
c7be5cfadc
|
@ -129,9 +129,7 @@ def get_updates_longpoll(request, handler):
|
|||
last_received = request.POST.get('last_received')
|
||||
if not last_received:
|
||||
return json_error("Missing last_received argument")
|
||||
|
||||
user = request.user
|
||||
user_profile = UserProfile.objects.get(user=user)
|
||||
user_profile = UserProfile.objects.get(user=request.user)
|
||||
|
||||
def on_receive(zephyrs):
|
||||
if handler.request.connection.stream.closed():
|
||||
|
|
Loading…
Reference in New Issue