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