From 6aa385b4bcfe5a97bbf21263126f61adcd3bc606 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 23 Jun 2025 08:48:52 -0700 Subject: mark self-generated invoices --- lib/invoices.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/invoices.ts b/lib/invoices.ts index f6ad65e8..d624ac6b 100644 --- a/lib/invoices.ts +++ b/lib/invoices.ts @@ -23,6 +23,7 @@ export const generate = async ({ invoice, user }) => { tip, amount, items = [], + own, rate, request_id, memo, @@ -38,6 +39,7 @@ export const generate = async ({ invoice, user }) => { if (user) user = await getUser(user.username); if (!user) fail("user not provided"); + if (typeof prompt === "undefined") prompt = user.prompt; let account = await g(`account:${aid}`); if (!account) account = await g(`account:${user.id}`); @@ -134,6 +136,7 @@ export const generate = async ({ invoice, user }) => { received: 0, request_id, memoPrompt, + own, path, prompt, secret, -- cgit v1.2.3