mirror of https://github.com/zulip/zulip.git
Fix bug where starnine@mit.edu always gets added to zephyr-forwarded huddles.
(imported from commit 3ab930ed8ad6ce917b33483bd5af3cf27452f6da)
This commit is contained in:
parent
abd97578c0
commit
ed8042da73
|
@ -375,7 +375,7 @@ def zephyr_backend(request, user_profile, sender):
|
|||
except User.DoesNotExist:
|
||||
return json_error("Invalid email '%s'" % (recipient))
|
||||
# Make sure the sender is included in the huddle
|
||||
recipient_ids.append(UserProfile.objects.get(user=request.user).id)
|
||||
recipient_ids.append(UserProfile.objects.get(user=sender).id)
|
||||
huddle = get_huddle(recipient_ids)
|
||||
recipient = Recipient.objects.get(type_id=huddle.id, type=Recipient.HUDDLE)
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue