Make Message's display_recipient field be an object with consistent names for both personals and huddles.
(imported from commit 8b00f16b036ed3fb3f7d56e7393271ec1d458ea5)
This commit is contained in:
parent
b229b307d6
commit
72ebb01913
|
@ -261,7 +261,7 @@ def forward_to_zephyr(message):
|
|||
zeph.send()
|
||||
elif message['type'] == "personal":
|
||||
zeph = zephyr.ZNotice(sender=message["sender_email"].replace("mit.edu", "ATHENA.MIT.EDU"),
|
||||
auth=True, recipient=message["display_recipient"].replace("mit.edu", "ATHENA.MIT.EDU"),
|
||||
auth=True, recipient=message["display_recipient"]["email"].replace("mit.edu", "ATHENA.MIT.EDU"),
|
||||
cls="message", instance="personal")
|
||||
body = "%s\0%s" % (zsig, wrapped_content)
|
||||
zeph.setmessage(body)
|
||||
|
|
Loading…
Reference in a new issue