1927 Commits

Author SHA1 Message Date
keyan
b42a934207 fix invites signup via lightning/slashtags 2023-07-31 09:19:53 -05:00
keyan
bc5a19c6ee suppress hydration warnings when relative time is rendered 2023-07-31 09:12:56 -05:00
keyan
10e8cb35df fix import on invites 2023-07-31 09:11:22 -05:00
keyan
8581088bd4 make sure dev db timezone is utc 2023-07-31 09:03:01 -05:00
keyan
d5aeea6dd3 bump packages again 2023-07-31 08:43:13 -05:00
keyan
d2216e80da conform to linter 2023-07-31 08:39:10 -05:00
keyan
c909efb7b7 update wallet code to prisma 5, handle prisma 5 errors on serialization 2023-07-31 08:31:40 -05:00
keyan
acd8a8de5a add dark mode to precache 2023-07-31 07:37:42 -05:00
ekzyis
c975bd8ebd Fix unexpected token 'export' 2023-07-30 23:45:08 +02:00
ekzyis
ba04e6522d Also strike on payment after short press 2023-07-30 23:45:08 +02:00
ekzyis
d186e869e1 Allow pay per invoice for bounty and job posts 2023-07-30 23:45:08 +02:00
ekzyis
f2f09b22c4 Fix invoice amount for comments 2023-07-30 23:45:08 +02:00
ekzyis
1cd9750be5 Fix insufficient funds error detection 2023-07-30 23:45:08 +02:00
ekzyis
773f658e00 Remove duplicate insufficient funds handling 2023-07-30 23:45:08 +02:00
ekzyis
28ea5ab70e Skip 'invoice not found' errors 2023-07-30 23:45:07 +02:00
ekzyis
85162b6d33 Add error handling 2023-07-30 23:45:07 +02:00
ekzyis
f0d0d07bad Skip anon user during trust calculation 2023-07-30 23:45:07 +02:00
ekzyis
6b4b5023f6 Keep invoice modal open if focus is lost 2023-07-30 23:45:07 +02:00
ekzyis
7dda8a1e01 Fix onSuccess called twice
For some reason, when calling `showModal`, `useMemo` in modal.js and the code for the modal component (here: <Invoice>) is called twice.

This leads to the `onSuccess` callback being called twice and one failing since the first one deletes the invoice.
2023-07-30 23:45:07 +02:00
ekzyis
853a389b65 Allow pay per invoice for stackers
The modal which pops up if the stacker does not have enough sats now has two options: "fund wallet" and "pay invoice"
2023-07-30 23:45:07 +02:00
ekzyis
fd8510d59f Use payment hash instead of invoice id as proof of payment
Our invoice IDs can be enumerated.
So there is a - even though very rare - chance that an attacker could find a paid invoice which is not used yet and use it for himself.
Random payment hashes prevent this.

Also, since we delete invoices after use, using database IDs as proof of payments are not suitable.
If a user tells us an invoice ID after we deleted it, we can no longer tell if the invoice was paid or not since the LN node only knows about payment hashes but nothing about the database IDs.
2023-07-30 23:45:07 +02:00
ekzyis
74893b09dd Add anon comments and posts (link, discussion, poll) 2023-07-30 23:45:07 +02:00
ekzyis
5415c6b0f6 Add anon zaps 2023-07-30 23:45:07 +02:00
keyan
42bdd40f91 show errors on settings during auth linking 2023-07-30 15:39:18 -05:00
keyan
63a4a7acad fix settings hydration error 2023-07-30 14:38:50 -05:00
keyan
d04dc691df provide jwt migration 2023-07-30 14:03:24 -05:00
keyan
9745b82d63 fix viewing stacker's bookmarks 2023-07-29 18:27:32 -05:00
keyan
738bd052f1 cache lightning font encodings forever 2023-07-29 15:15:58 -05:00
keyan
5232b59625 upgrade to next-auth 4 (bonus: improve error pages) 2023-07-29 14:38:20 -05:00
keyan
de089aa429 service worker enhancements 2023-07-29 14:33:19 -05:00
keyan
688d67a0d6 improve service worker asset precaching and offline page 2023-07-28 10:57:12 -05:00
keyan
b468b71e09 disable service worker in dev 2023-07-27 12:45:18 -05:00
keyan
7490e5c249 fix syntax highlighting warnings 2023-07-27 12:10:05 -05:00
keyan
566e3f427b upgrade to prisma 5 2023-07-26 19:51:37 -05:00
keyan
213e69d0d4 upgrade to node v18 2023-07-26 19:22:22 -05:00
keyan
7542dd6cc4 upgrade to prisma 4 2023-07-26 19:18:42 -05:00
keyan
5fb5b5c5e5 fix secondary button active color 2023-07-26 11:04:19 -05:00
keyan
672853a7ea upgrade to prisma 3 2023-07-26 11:01:31 -05:00
keyan
5a4f63b1d5 fix pinned discussion spacing 2023-07-26 08:48:46 -05:00
keyan
9c93e4f89e remove marginal sort types 2023-07-25 20:05:12 -05:00
keyan
8ea9938cb0 fix broken image text 2023-07-25 20:02:43 -05:00
keyan
8ab018af88 fix nested comment sorting 2023-07-25 19:45:35 -05:00
keyan
19835aef5f fix undefined sub on post pre-form 2023-07-25 15:41:46 -05:00
keyan
4c1ef62386 fix edit bio button location 2023-07-25 15:32:49 -05:00
keyan
98552c853c fix back button behavior on select navigation 2023-07-25 15:29:45 -05:00
keyan
e09ea310cd fix mdast library conflict 2023-07-25 13:59:07 -05:00
keyan
4bfd021342 enhance styling 2023-07-25 13:32:48 -05:00
keyan
ab2046ab0b fix issues with new linting 2023-07-25 09:14:45 -05:00
keyan
041b711c21 fix mdast find and replace imports 2023-07-24 20:03:56 -05:00
keyan
dae9c64e96 more package updates 2023-07-24 19:50:55 -05:00