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

View File

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