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