From 51e01eb2dc6e7976963c31b9349c4e621c535874 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 28 Feb 2026 22:06:55 -0800 Subject: disable rate limiting in dev --- lib/payments.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'lib/payments.ts') diff --git a/lib/payments.ts b/lib/payments.ts index 52319c8d..66f536bc 100644 --- a/lib/payments.ts +++ b/lib/payments.ts @@ -371,11 +371,9 @@ export const completePayment = async (inv, p, user) => { inv.forwarded = true; await s(`invoice:${inv.id}`, inv); - // Skip forward if destination is the same user's own Lightning invoice - if (inv.forward.startsWith("ln")) { - const destInv = await getInvoice(inv.forward).catch(() => null); - if (destInv?.uid === id) return; - } + // Skip forward if destination belongs to the same user + const destInv = await getInvoice(inv.forward).catch(() => null); + if (destInv?.uid === id) return; await pay({ amount: p.amount, to: inv.forward, user }); } catch (e) { -- cgit v1.2.3