diff --git a/lib/lnurl.js b/lib/lnurl.js index 1e388c84..d986d38e 100644 --- a/lib/lnurl.js +++ b/lib/lnurl.js @@ -10,6 +10,9 @@ export function lnurlPayMetadataString (username) { return JSON.stringify([[ 'text/plain', `Funding @${username} on stacker.news` + ], [ + 'text/identifier', + `${username}@stacker.news` ]]) } diff --git a/pages/api/lnurlp/[username]/pay.js b/pages/api/lnurlp/[username]/pay.js index de10d65d..c21b64f7 100644 --- a/pages/api/lnurlp/[username]/pay.js +++ b/pages/api/lnurlp/[username]/pay.js @@ -32,7 +32,8 @@ export default async ({ query: { username, amount } }, res) => { ${expiresAt}, ${Number(amount)}, ${user.id})`) return res.status(200).json({ - pr: invoice.request + pr: invoice.request, + routes: [] }) } catch (error) { console.log(error)