1068 Commits

Author SHA1 Message Date
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
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