Resolve review comment
This commit is contained in:
parent
89c67f3617
commit
d922e7f869
@ -17,11 +17,11 @@ class Services::LightningController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def qr_lnurlp
|
def qr_lnurlp
|
||||||
respond_to do |format|
|
lnurlp_url = "https://kosmos.org/.well-known/lnurlp/#{current_user.cn}"
|
||||||
lnurlp_url = "https://kosmos.org/.well-known/lnurlp/#{current_user.cn}"
|
lnurlp_bech32 = Lnurl.new(lnurlp_url).to_bech32
|
||||||
lnurlp_bech32 = Lnurl.new(lnurlp_url).to_bech32
|
qr_code = RQRCode::QRCode.new("lightning:" + lnurlp_bech32)
|
||||||
qr_code = RQRCode::QRCode.new("lightning:" + lnurlp_bech32)
|
|
||||||
|
|
||||||
|
respond_to do |format|
|
||||||
format.svg do
|
format.svg do
|
||||||
qr_svg = qr_code.as_svg(
|
qr_svg = qr_code.as_svg(
|
||||||
color: "000",
|
color: "000",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user