fix missing phone_jid_localpart variable
This commit is contained in:
parent
90fd2b0d2c
commit
1ee9b4dfbe
1
app.py
1
app.py
@ -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}")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user