2562 Commits

Author SHA1 Message Date
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
keyan
e87610c45b update packages and reduce bundle size 2023-07-24 17:50:12 -05:00
keyan
356f7e072c 50% reduction in bundle size by being careful with big imports 2023-07-24 16:06:26 -05:00
keyan
6407455def upgrade react-bootstrap 2023-07-24 13:53:53 -05:00
keyan
54d69489b9 Revert "Revert "try to store slashtags in cwd""
This reverts commit bbedec853f9b2053635e6b3f6fe458bba4b8d55c.
2023-07-23 10:09:00 -05:00
keyan
437faca197 Revert "Revert "prevent slashtags from accessing disk""
This reverts commit 391773be5ee742a9783d36ba7c2eecb5d29dea29.
2023-07-23 10:08:56 -05:00
keyan
567b1b9e88 Revert "Revert "deploy hack: fix slashtags package user""
This reverts commit ba0cd71d23880473ecb85f07f2a42322765929ef.
2023-07-23 10:08:53 -05:00
keyan
779d64af5b Revert "Revert "bypass self.__WB_MANIFEST check""
This reverts commit b31b5ce4a8fc243870bfd028169b7267f6741ac5.
2023-07-23 10:08:49 -05:00
keyan
59f7b6ff26 Revert "Revert "shield your eyes; massive, squashed refactor; nextjs/react/react-dom/apollo upgrades""
This reverts commit 18910fa2ed470fe12ffbfb83df18e206101f0a05.
2023-07-23 10:08:43 -05:00
keyan
441ec62476 formatting 2023-07-23 09:17:45 -05:00
keyan
18910fa2ed Revert "shield your eyes; massive, squashed refactor; nextjs/react/react-dom/apollo upgrades"
This reverts commit d0314ab73c42ebf85fe2f418dddd681af45dbc55.
2023-07-23 09:16:12 -05:00
keyan
b31b5ce4a8 Revert "bypass self.__WB_MANIFEST check"
This reverts commit afd8acd69d73d5b06a48312fff1c18bcbb88cf89.
2023-07-23 09:16:10 -05:00
keyan
ba0cd71d23 Revert "deploy hack: fix slashtags package user"
This reverts commit 67509fe2be4e2622a4e94f7cc96a57881318876c.
2023-07-23 09:16:06 -05:00
keyan
391773be5e Revert "prevent slashtags from accessing disk"
This reverts commit 3c6c2a72b2036635eb7fef34e787edfa7279bd12.
2023-07-23 09:16:02 -05:00
keyan
bbedec853f Revert "try to store slashtags in cwd"
This reverts commit 589d1ec190ddf26b139fa5e516450866e347ea31.
2023-07-23 09:15:40 -05:00
keyan
512b9257d2 fix rewards to also pay post tippers 2023-07-23 09:00:02 -05:00