Fix LNUrl comment truncating

This commit is contained in:
nicolas.dorier
2022-02-21 13:47:00 +09:00
parent 292d302a3d
commit 7b81b9786d

View File

@@ -307,7 +307,7 @@ namespace BTCPayServer
return NotFound();
}
if (comment is not null)
comment = comment.Substring(0, 2000);
comment = comment.Truncate(2000);
var pmi = new PaymentMethodId(cryptoCode, PaymentTypes.LNURLPay);
var i = await _invoiceRepository.GetInvoice(invoiceId, true);