Compare commits

...

2 Commits

Author SHA1 Message Date
k00b 96e5c6c51c fix #1628 2024-11-21 08:52:24 -06:00
Riccardo Balbo eb3efbef57
HOTFIX: restore missing link between lnurlp and nip57 (#1630)
* restore missing link between lnurlp and nip57

* pass noteStr as receive action arg

* make sure the desc field is not updated if noteStr is unset
2024-11-21 08:46:28 -06:00
3 changed files with 16 additions and 11 deletions

View File

@ -36,13 +36,15 @@ export async function getSybilFeePercent () {
export async function perform ({ export async function perform ({
invoiceId, invoiceId,
comment, comment,
lud18Data lud18Data,
noteStr
}, { me, tx }) { }, { me, tx }) {
const invoice = await tx.invoice.update({ const invoice = await tx.invoice.update({
where: { id: invoiceId }, where: { id: invoiceId },
data: { data: {
comment, comment,
lud18Data lud18Data,
...(noteStr ? { desc: noteStr } : {})
}, },
include: { invoiceForward: true } include: { invoiceForward: true }
}) })

View File

@ -5,11 +5,6 @@
-webkit-touch-callout: none; -webkit-touch-callout: none;
} }
.upvote:hover {
fill: var(--hover-fill) !important;
filter: var(--hover-filter) !important;
}
.boost { .boost {
fill: var(--theme-clickToContextColor); fill: var(--theme-clickToContextColor);
user-select: none; user-select: none;
@ -17,9 +12,16 @@
-webkit-touch-callout: none; -webkit-touch-callout: none;
} }
.boost:hover { @media (hover: hover) {
fill: var(--hover-fill) !important; .upvote:hover {
filter: var(--hover-filter) !important; fill: var(--hover-fill) !important;
filter: var(--hover-filter) !important;
}
.boost:hover {
fill: var(--hover-fill) !important;
filter: var(--hover-filter) !important;
}
} }
.boost.boosted { .boost.boosted {

View File

@ -82,7 +82,8 @@ export default async ({ query: { username, amount, nostr, comment, payerdata: pa
description, description,
descriptionHash, descriptionHash,
comment: comment || '', comment: comment || '',
lud18Data: parsedPayerData lud18Data: parsedPayerData,
noteStr
}, { models, lnd, me: user }) }, { models, lnd, me: user })
if (!invoice?.bolt11) throw new Error('could not generate invoice') if (!invoice?.bolt11) throw new Error('could not generate invoice')