mirror of
https://github.com/lnbits/lnbits.git
synced 2025-10-05 11:18:36 +02:00
lnurl bug
This commit is contained in:
@@ -14,12 +14,14 @@
|
|||||||
class="fixed-bottom-right"
|
class="fixed-bottom-right"
|
||||||
></video>
|
></video>
|
||||||
<img src="" style="width: 100%" id="animations" class="fixed-bottom-left" />
|
<img src="" style="width: 100%" id="animations" class="fixed-bottom-left" />
|
||||||
|
{% raw %}
|
||||||
<qrcode
|
<qrcode
|
||||||
style="width: 20%; z-index: 9999"
|
style="width: 20%; z-index: 9999"
|
||||||
:value="{{ lnurl }}"
|
:value="{{ lnurl }}"
|
||||||
:options="{width:150}"
|
:options="{width:150}"
|
||||||
class="rounded-borders fixed-top-right"
|
class="rounded-borders fixed-top-right"
|
||||||
></qrcode>
|
></qrcode>
|
||||||
|
{% endraw %}
|
||||||
<q-btn
|
<q-btn
|
||||||
color="primary"
|
color="primary"
|
||||||
@click="reconnect"
|
@click="reconnect"
|
||||||
|
@@ -40,12 +40,11 @@ async def compose(copilot_id):
|
|||||||
copilot = await get_copilot(copilot_id) or abort(
|
copilot = await get_copilot(copilot_id) or abort(
|
||||||
HTTPStatus.NOT_FOUND, "Copilot link does not exist."
|
HTTPStatus.NOT_FOUND, "Copilot link does not exist."
|
||||||
)
|
)
|
||||||
return await render_template("copilot/compose.html", copilot=copilot)
|
return await render_template("copilot/compose.html", copilot=copilot, lnurl=copilot.lnurl)
|
||||||
|
|
||||||
@copilot_ext.route("/<copilot_id>")
|
@copilot_ext.route("/<copilot_id>")
|
||||||
async def panel(copilot_id):
|
async def panel(copilot_id):
|
||||||
copilot = await get_copilot(copilot_id) or abort(
|
copilot = await get_copilot(copilot_id) or abort(
|
||||||
HTTPStatus.NOT_FOUND, "Copilot link does not exist."
|
HTTPStatus.NOT_FOUND, "Copilot link does not exist."
|
||||||
)
|
)
|
||||||
print(copilot.lnurl)
|
return await render_template("copilot/panel.html", copilot=copilot)
|
||||||
return await render_template("copilot/panel.html", copilot=copilot, lnurl=copilot.lnurl)
|
|
Reference in New Issue
Block a user