Should be working

Need to check lnurl logic, and debug
This commit is contained in:
Ben Arc
2021-04-15 09:39:27 +01:00
parent 34d659f9f3
commit 1af84b2b3d
8 changed files with 227 additions and 260 deletions
+3 -1
View File
@@ -40,7 +40,9 @@ 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, lnurl=copilot.lnurl)
if copilot.lnurl_toggle:
return await render_template("copilot/compose.html", copilot=copilot, lnurl=copilot.lnurl, lnurl_toggle=copilot.lnurl_toggle)
return await render_template("copilot/compose.html", copilot=copilot, lnurl_toggle=copilot.lnurl_toggle)
@copilot_ext.route("/<copilot_id>")
async def panel(copilot_id):