20 Commits

Author SHA1 Message Date
ekzyis
318088179a Rename to useInvoiceable 2023-08-10 03:34:38 +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
keyan
6407455def upgrade react-bootstrap 2023-07-24 13:53:53 -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
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
d0314ab73c shield your eyes; massive, squashed refactor; nextjs/react/react-dom/apollo upgrades 2023-07-21 17:33:11 -05:00
ekzyis
fa32e22cde
Fix double slash (#325)
Co-authored-by: ekzyis <ek@stacker.news>
2023-06-21 13:09:04 -05:00
keyan
342a165ced refine cancel button 2023-06-12 14:39:27 -05:00
ekzyis
e243c1c224
Add cancel button for editing all post types + bio (#310)
* Add cancel button when editing any post type

* Add cancel button when editing bio

---------

Co-authored-by: ekzyis <ek@stacker.news>
2023-06-12 12:35:28 -05:00
keyan
df1f1a483a require sub selection, allow editting 2023-05-10 19:30:51 -05:00
keyan
b406f0c340 avoid db dip for sub 2023-05-05 12:39:57 -05:00
keyan
a241d683d8 nostr sub 2023-05-01 15:58:30 -05:00
keyan
4cae1ae230 reuse validation on server 2023-02-08 13:39:53 -06:00
keyan
10ff3fa1c3 delete 2023-01-13 11:52:18 -06:00
keyan
2d012ba7fe allow nip05 for users 2023-01-06 18:53:29 -06:00
keyan
d9d426e5c3 add freebies 2022-09-27 16:19:15 -05:00
keyan
388c7d0240 full powered editing 2022-08-18 13:15:24 -05:00
keyan
82280b0966 add polls 2022-07-30 08:51:04 -05:00