fix missing phone_jid_localpart variable

This commit is contained in:
DJ Gillespie 2025-09-10 18:02:10 -06:00
parent 90fd2b0d2c
commit 1ee9b4dfbe

1
app.py
View File

@ -46,6 +46,7 @@ async def mailgun_webhook(
subject: str = Form(""), subject: str = Form(""),
body_plain: str = Form("", alias="body-plain"), body_plain: str = Form("", alias="body-plain"),
): ):
phone_jid_localpart = recipient.split("@")[0]
target_jid = f"@_bifrost_=2b{phone_jid_localpart}=40cheogram.com:aria-net.org" target_jid = f"@_bifrost_=2b{phone_jid_localpart}=40cheogram.com:aria-net.org"
print(f"RECIPIENT: {recipient}\nSUBJECT: {subject}\nBODY: {body_plain}") print(f"RECIPIENT: {recipient}\nSUBJECT: {subject}\nBODY: {body_plain}")