From eb3efbef57cfdd01db81a33f56384a90b004d82b Mon Sep 17 00:00:00 2001 From: Riccardo Balbo Date: Thu, 21 Nov 2024 15:46:28 +0100 Subject: [PATCH 1/2] 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 --- api/paidAction/receive.js | 6 ++++-- pages/api/lnurlp/[username]/pay.js | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/api/paidAction/receive.js b/api/paidAction/receive.js index 6f39c11f1..8c6d8d4d5 100644 --- a/api/paidAction/receive.js +++ b/api/paidAction/receive.js @@ -36,13 +36,15 @@ export async function getSybilFeePercent () { export async function perform ({ invoiceId, comment, - lud18Data + lud18Data, + noteStr }, { me, tx }) { const invoice = await tx.invoice.update({ where: { id: invoiceId }, data: { comment, - lud18Data + lud18Data, + ...(noteStr ? { desc: noteStr } : {}) }, include: { invoiceForward: true } }) diff --git a/pages/api/lnurlp/[username]/pay.js b/pages/api/lnurlp/[username]/pay.js index 0504e2989..7df0cd18e 100644 --- a/pages/api/lnurlp/[username]/pay.js +++ b/pages/api/lnurlp/[username]/pay.js @@ -82,7 +82,8 @@ export default async ({ query: { username, amount, nostr, comment, payerdata: pa description, descriptionHash, comment: comment || '', - lud18Data: parsedPayerData + lud18Data: parsedPayerData, + noteStr }, { models, lnd, me: user }) if (!invoice?.bolt11) throw new Error('could not generate invoice') From 96e5c6c51c64ff06233117d423d0bb9bcf47bce8 Mon Sep 17 00:00:00 2001 From: k00b Date: Thu, 21 Nov 2024 08:52:24 -0600 Subject: [PATCH 2/2] fix #1628 --- components/upvote.module.css | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/components/upvote.module.css b/components/upvote.module.css index 679a38684..4b2f688f8 100644 --- a/components/upvote.module.css +++ b/components/upvote.module.css @@ -5,11 +5,6 @@ -webkit-touch-callout: none; } -.upvote:hover { - fill: var(--hover-fill) !important; - filter: var(--hover-filter) !important; -} - .boost { fill: var(--theme-clickToContextColor); user-select: none; @@ -17,9 +12,16 @@ -webkit-touch-callout: none; } -.boost:hover { - fill: var(--hover-fill) !important; - filter: var(--hover-filter) !important; +@media (hover: hover) { + .upvote:hover { + fill: var(--hover-fill) !important; + filter: var(--hover-filter) !important; + } + + .boost:hover { + fill: var(--hover-fill) !important; + filter: var(--hover-filter) !important; + } } .boost.boosted {