From 8f9e1c3e848b48a91f65d889015222915b1c31d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Wed, 25 Jan 2023 13:18:44 +0800 Subject: [PATCH] Improve lnurlp message and notification --- app/controllers/lnurlpay_controller.rb | 2 +- app/controllers/webhooks_controller.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/lnurlpay_controller.rb b/app/controllers/lnurlpay_controller.rb index d00829b..b1326b1 100644 --- a/app/controllers/lnurlpay_controller.rb +++ b/app/controllers/lnurlpay_controller.rb @@ -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({ diff --git a/app/controllers/webhooks_controller.rb b/app/controllers/webhooks_controller.rb index 487f43c..74f880a 100644 --- a/app/controllers/webhooks_controller.rb +++ b/app/controllers/webhooks_controller.rb @@ -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