139 Commits

Author SHA1 Message Date
keyan
b2508b738a make anon hat appear on profile 2023-08-11 14:12:18 -05:00
keyan
ea9c405dfa add sat amounts to invoices 2023-08-10 18:33:57 -05:00
ekzyis
118f591d04 Merge branch 'master' into 266-zaps-without-account 2023-08-10 03:34:38 +02:00
ekzyis
67a0de3ea5
Notifications with nostr info (#368)
* Show zap message and pubkey in notifications

+ show zap request event in invoice view

* enhance ui

---------

Co-authored-by: ekzyis <ek@stacker.news>
Co-authored-by: keyan <keyan.kousha+huumn@gmail.com>
2023-08-08 13:19:31 -05:00
Keyan
76b4156ccb
Merge branch 'master' into 266-zaps-without-account 2023-08-08 09:42:21 -05:00
ekzyis
7369bd819d
Add nostr login (#367)
Co-authored-by: keyan <keyan.kousha+huumn@gmail.com>
2023-08-07 19:50:01 -05: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
5415c6b0f6 Add anon zaps 2023-07-30 23:45:07 +02:00
keyan
8ab018af88 fix nested comment sorting 2023-07-25 19:45:35 -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
0d3328e509
Show longest cowboy streak in profile (#353)
* Show longest cowboy streak in profile

* Fix image offset

* Initialize maxStreak for every user

* Use resolver instead of denormalization for maxStreak

---------

Co-authored-by: ekzyis <ek@stacker.news>
2023-07-12 19:10:29 -05:00
keyan
efa3172f15 top stackers sorted stat to front 2023-07-10 12:59:21 -05:00
keyan
4e9138dfdc show more info on where zap rewards came from 2023-07-09 12:21:11 -05:00
keyan
f0f51438c4 add top posts/comments to subs 2023-06-12 19:40:18 -05:00
keyan
369bd82a84 make freebie comments visible case by case 2023-06-03 20:01:50 -05:00
keyan
d815cae715 add 'stacking since' to profile 2023-06-02 19:55:45 -05:00
ekzyis
0c251ca376
Add thread subscriptions (#293)
* Add thread subscriptions

* remove dead code: reply only notifications

* break out thread subscription queries to reduce search space

* one db dip for item lists/threads re:meSubscription

---------

Co-authored-by: ekzyis <ek@stacker.news>
Co-authored-by: keyan <keyan.kousha+huumn@gmail.com>
2023-05-31 19:44:06 -05:00
keyan
225e472dd7 add root fields to flat comments on user 2023-05-06 20:40:42 -05:00
keyan
a97f8229b0 avoid extra dip when getting users 2023-05-06 18:18:18 -05:00
keyan
347a6a54d2 improve comment performance 2023-05-06 16:51:17 -05:00
keyan
b406f0c340 avoid db dip for sub 2023-05-05 12:39:57 -05:00
keyan
abd9555792 fix recent comments 2023-05-04 19:20:48 -05:00
keyan
4be5286122 hide cowboy hat setting 2023-05-01 16:52:02 -05:00
keyan
a241d683d8 nostr sub 2023-05-01 15:58:30 -05:00
keyan
0c2b9a31b2 ots timestamp link on comments 2023-02-24 10:02:20 -06:00
keyan
16bf7007cc put opentimestamps link in item dropdown 2023-02-16 17:07:20 -06:00
ekzyis
7b838cdeb2
Implement bookmarking of posts and comments (#235) 2023-02-16 16:23:59 -06:00
keyan
97f74da0fd top cowboys 2023-02-09 12:41:28 -06:00
keyan
a5b2de64d3 remove bolt on posts forwarding to self 2023-02-08 18:11:28 -06:00
keyan
36ddb25b46 remove extra queries 2023-02-03 18:08:08 -06:00
keyan
c1080ec4d7 fixes for top 2023-02-03 13:10:18 -06:00
keyan
072e60c954 streaks 2023-02-01 17:40:49 -06:00
ekzyis
4ab66a67ae
Add proxy with cache for coinbase API requests (#226) 2023-01-27 17:20:33 -06:00
keyan
5306b11157 improve bounty performance 2023-01-26 13:09:57 -06:00
Austin Kelsay
e13e37744e
stackernews bounties (#227)
bounties
2023-01-26 10:11:55 -06:00
keyan
29c59d93ea open timestamps 2023-01-22 14:17:50 -06:00
keyan
9644a9f867 slashtags auth 2023-01-18 12:49:20 -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
ee17518abf add referrer stats to top 2022-12-19 17:00:53 -06:00
keyan
41226245c5 referrals 2022-12-19 16:27:52 -06:00
keyan
7b7ed0047c turbo tipping 2022-12-09 13:25:38 -06:00
keyan
2a4e5a0617 add more filters to recent 2022-12-01 16:42:49 -06:00
keyan
a2db3e18b4 better user analytics mostly 2022-12-01 15:31:04 -06:00
keyan
1bf747c7c0 sats to msats 2022-11-16 10:57:03 -06:00
keyan
8de00c741d poll for notifications less, don't retry gql 2022-11-16 10:57:03 -06:00
keyan
760b6b6e10 related items 2022-10-27 15:25:42 -05:00
keyan
6c9f4f1c3a for top users constrain other stats 2022-10-26 09:56:22 -05:00