lnurl bug

This commit is contained in:
Ben Arc
2021-04-14 23:18:27 +01:00
parent 19a0303caa
commit 7d3ba300e4
2 changed files with 4 additions and 3 deletions

View File

@@ -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"

View File

@@ -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)