From 13a72d9a41abe3dc378c6c8c28203113b06c9c47 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Thu, 17 Feb 2022 11:42:08 +0100 Subject: [PATCH] replace string with LNBITS_SITE_TITLE --- lnbits/core/views/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lnbits/core/views/api.py b/lnbits/core/views/api.py index e353b03b..d607e149 100644 --- a/lnbits/core/views/api.py +++ b/lnbits/core/views/api.py @@ -31,6 +31,7 @@ from lnbits.utils.exchange_rates import ( fiat_amount_as_satoshis, satoshis_amount_as_fiat, ) +from lnbits.settings import LNBITS_SITE_TITLE from .. import core_app, db from ..crud import ( @@ -140,7 +141,7 @@ async def api_payments_create_invoice(data: CreateInvoiceData, wallet: Wallet): memo = "" else: description_hash = b"" - memo = data.memo if data.memo is not None else "LNbits" + memo = data.memo or LNBITS_SITE_TITLE if data.unit == "sat": amount = int(data.amount) else: