Improve lnurlp message and notification
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
4a045bf61c
commit
8f9e1c3e84
|
@ -32,7 +32,7 @@ class LnurlpayController < ApplicationController
|
|||
return
|
||||
end
|
||||
|
||||
memo = "Sats for #{address}"
|
||||
memo = "To #{address}"
|
||||
memo = "#{memo}: \"#{comment}\"" if comment.present?
|
||||
|
||||
payment_request = @user.ln_create_invoice({
|
||||
|
|
|
@ -27,7 +27,7 @@ class WebhooksController < ApplicationController
|
|||
from: "kosmos.org", # TODO domain config
|
||||
to: address,
|
||||
subject: "Sats received!",
|
||||
body: "#{amt_sats} sats received in your wallet. Memo: \"#{memo}\""
|
||||
body: "#{amt_sats} sats received in your Lightning wallet:\n> #{memo}"
|
||||
}
|
||||
XmppSendMessageJob.perform_later(payload)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue