From a437ec7d3ff1370426632b4ab4a89a0084af1a65 Mon Sep 17 00:00:00 2001 From: Sandipan Dey Date: Tue, 19 Sep 2023 13:36:48 +0530 Subject: [PATCH 1/2] chore: commentAllowed for lnurl --- app/lnurlp/[username]/route.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/lnurlp/[username]/route.ts b/app/lnurlp/[username]/route.ts index 43dd6858..02c111d9 100644 --- a/app/lnurlp/[username]/route.ts +++ b/app/lnurlp/[username]/route.ts @@ -88,6 +88,7 @@ export async function GET( minSendable, maxSendable, metadata, + commentAllowed: 2000, tag: "payRequest", ...(nostrEnabled ? { From f52ac818255fe9477b5e73dedfc2f1104de48d0e Mon Sep 17 00:00:00 2001 From: Sandipan Dey Date: Tue, 31 Oct 2023 11:42:56 +0530 Subject: [PATCH 2/2] chore: lud 12 --- app/lnurlp/[username]/route.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/lnurlp/[username]/route.ts b/app/lnurlp/[username]/route.ts index 02c111d9..97359882 100644 --- a/app/lnurlp/[username]/route.ts +++ b/app/lnurlp/[username]/route.ts @@ -10,6 +10,8 @@ import { } from "../../../lib/graphql/generated" import { client } from "./graphql" +const COMMENT_SIZE = 2000 // 2000 characters max for GET + const nostrEnabled = !!NOSTR_PUBKEY export async function GET( @@ -88,7 +90,7 @@ export async function GET( minSendable, maxSendable, metadata, - commentAllowed: 2000, + commentAllowed: COMMENT_SIZE, tag: "payRequest", ...(nostrEnabled ? {