Fix bug where starnine@mit.edu always gets added to zephyr-forwarded huddles.

(imported from commit 3ab930ed8ad6ce917b33483bd5af3cf27452f6da)
This commit is contained in:
Tim Abbott 2012-10-03 17:55:09 -04:00
parent abd97578c0
commit ed8042da73
1 changed files with 1 additions and 1 deletions

View File

@ -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: