Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Commit

Permalink
fix: description hash
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Burtey committed Aug 22, 2023
1 parent 39fbe19 commit 7406850
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/lnurlp/[username]/callback/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
LnInvoiceCreateOnBehalfOfRecipientDocument,
LnInvoiceCreateOnBehalfOfRecipientMutation,
} from "../../../../lib/graphql/generated"
import { URL_HOST_DOMAIN } from "../../../../config/config"

const ipForwardingMiddleware = new ApolloLink((operation, forward) => {
operation.setContext(({ headers = {} }) => ({
Expand Down Expand Up @@ -110,7 +111,7 @@ export async function GET(
) {
console.log(NOSTR_PUBKEY)

const { searchParams, hostname } = new URL(request.url)
const { searchParams } = new URL(request.url)

const username = params.username

Expand Down Expand Up @@ -151,7 +152,7 @@ export async function GET(

const metadata = JSON.stringify([
["text/plain", `Payment to ${username}`],
["text/identifier", `${username}@${hostname}`],
["text/identifier", `${username}@${URL_HOST_DOMAIN}`],
])

// lnurl generate invoice
Expand Down

0 comments on commit 7406850

Please sign in to comment.