adhere to lnurlp spec better
This commit is contained in:
parent
0c95794d74
commit
9c8396670a
|
@ -10,6 +10,9 @@ export function lnurlPayMetadataString (username) {
|
|||
return JSON.stringify([[
|
||||
'text/plain',
|
||||
`Funding @${username} on stacker.news`
|
||||
], [
|
||||
'text/identifier',
|
||||
`${username}@stacker.news`
|
||||
]])
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue