mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-25 11:14:02 +02:00
copilot not triggering animations, listeners
This commit is contained in:
@@ -87,7 +87,7 @@ async def lnurl_callback(
|
||||
LnurlPayMetadata(json.dumps([["text/plain", str(cp.lnurl_title)]]))
|
||||
).encode("utf-8")
|
||||
).digest(),
|
||||
extra={"tag": "copilot", "copilot": cp.id, "comment": comment},
|
||||
extra={"tag": "copilot", "copilotid": cp.id, "comment": comment},
|
||||
)
|
||||
payResponse = {
|
||||
"pr": payment_request,
|
||||
|
@@ -29,8 +29,9 @@ async def on_invoice_paid(payment: Payment) -> None:
|
||||
if "copilot" != payment.extra.get("tag"):
|
||||
# not an copilot invoice
|
||||
return
|
||||
print("cunt")
|
||||
|
||||
copilot = await get_copilot(payment.extra.get("copilot", -1))
|
||||
copilot = await get_copilot(payment.extra.get("copilotid", -1))
|
||||
|
||||
if not copilot:
|
||||
raise HTTPException(
|
||||
|
Reference in New Issue
Block a user