Offer LNURL QR code for download on Lightning info page #135
@@ -17,11 +17,11 @@ class Services::LightningController < ApplicationController
|
||||
end
|
||||
|
||||
def qr_lnurlp
|
||||
respond_to do |format|
|
||||
lnurlp_url = "https://kosmos.org/.well-known/lnurlp/#{current_user.cn}"
|
||||
lnurlp_bech32 = Lnurl.new(lnurlp_url).to_bech32
|
||||
qr_code = RQRCode::QRCode.new("lightning:" + lnurlp_bech32)
|
||||
lnurlp_url = "https://kosmos.org/.well-known/lnurlp/#{current_user.cn}"
|
||||
lnurlp_bech32 = Lnurl.new(lnurlp_url).to_bech32
|
||||
qr_code = RQRCode::QRCode.new("lightning:" + lnurlp_bech32)
|
||||
|
||||
respond_to do |format|
|
||||
|
raucao marked this conversation as resolved
Outdated
|
||||
format.svg do
|
||||
qr_svg = qr_code.as_svg(
|
||||
color: "000",
|
||||
|
||||
Reference in New Issue
Block a user
why don't you use
respond_tohere?Good question. Should've done so to begin with. Refactored and pushed.
I'd move the logic out of this block and only have