Commit graph

66 commits

Author SHA1 Message Date
P. Reis
b81ae3f043 Merge branch 'main' into zap-notification-streaming 2024-09-24 18:12:28 -03:00
P. Reis
ebeb150463 refactor: use search in author_stats 2024-09-19 19:37:13 -03:00
P. Reis
9b66499df3 fix: get zap recipient in gatherAuthors() function
this is needed to work correctly in notifications
2024-09-16 14:00:12 -03:00
P. Reis
04a9a83fed feat: hydrate zap_message 2024-09-16 13:30:43 -03:00
P. Reis
a2077e3d40 feat: hydrate zap receipt kind 9735 - gatherZapSender, gatherZapped 2024-09-16 13:13:55 -03:00
Alex Gleason
ebc0250d81
DittoDB.getInstance() -> Storages.kysely() 2024-09-11 13:23:06 -05:00
Alex Gleason
d2fb3fd253
Make EventsDB not rely on Conf 2024-09-11 13:06:20 -05:00
Alex Gleason
552de01a17
Rework DittoDB to return an object 2024-08-11 19:02:27 -05:00
P. Reis
13d346afbd refactor: remove console.log 2024-07-05 18:43:14 -03:00
P. Reis
85fd7909e6 feat: add optional kysely in HydrateOpts interface 2024-07-05 17:42:19 -03:00
P. Reis
18648f7be3 fix(hydrate): return zaps_amount in gatherEventStats 2024-06-10 10:00:58 -03:00
Alex Gleason
8a7cae9841
Refactor reports more, add reopen endpoint 2024-06-09 11:03:46 -05:00
Alex Gleason
bd6424acf5
Add preliminary nameRequestsController 2024-06-08 22:16:34 -05:00
Alex Gleason
7d54a5c7d0
Kind 30361 -> 30382 2024-06-08 11:32:29 -05:00
Alex Gleason
77ce26bf7a
Use last e-tag as reacted event 2024-06-06 11:25:24 -05:00
Alex Gleason
e29375b070
Find quote ID in content 2024-06-04 17:46:11 -05:00
Alex Gleason
22c840092f
Add quotes count 2024-06-02 20:30:57 -05:00
Alex Gleason
14e5948394
Add assembleEvents bench 2024-05-25 10:33:23 -05:00
Alex Gleason
69ff568214
Stop recounting author stats constantly 2024-05-24 20:24:17 -05:00
Alex Gleason
c6dea07ac3
Add back reactions_count column so trending can still work 2024-05-24 17:51:32 -05:00
Alex Gleason
f7c9a96719
Nuke the old stats module, support emoji reactions on posts 2024-05-24 17:40:51 -05:00
Alex Gleason
9839b8138f
tags.ts -> utils/tags.ts 2024-05-21 13:08:08 -05:00
Alex Gleason
f30aad11a5
Fix legacy quote posts 2024-05-21 13:04:23 -05:00
Alex Gleason
bf479d0162
Move refreshAuthorStatsDebounced to stats.ts 2024-05-17 18:26:55 -05:00
Alex Gleason
5c2e3450a9
Refresh author stats: less naive way 2024-05-17 17:50:30 -05:00
Alex Gleason
251500fba1
Never let stats be less than 0 2024-05-17 11:39:21 -05:00
Alex Gleason
a4226a963f
Rework Kysely db to be async 2024-05-14 18:44:42 -05:00
Alex Gleason
68b5887ed0
Don't let your memes be dreams 2024-05-14 18:24:34 -05:00
Alex Gleason
a82af47c67
quote_repost -> quote 2024-05-08 14:53:33 -05:00
P. Reis
394599734f fix(reports): put notes in tag & only let comment in event.content 2024-05-05 15:45:24 -03:00
P. Reis
7890504add refactor: view info about all reports 2024-05-05 14:20:13 -03:00
P. Reis
d903a2d0fb Merge branch 'main' into admin-reports-api
Update local branch & solve conflicts in hydrate.ts
2024-05-04 20:23:16 -03:00
P. Reis
14802dd38a feat(hydrate): create gatherTargetAccounts() & gatherReportedStatuses() 2024-05-04 20:18:36 -03:00
Alex Gleason
0a3be0da58
Notifications: fix Favourites and EmojiReacts not being displayed 2024-05-03 21:22:53 -05:00
Alex Gleason
220f16feb8
Notifications: render notifications for kinds 1, 6, and 7 events 2024-05-02 14:36:28 -05:00
Alex Gleason
0bb4ccf5c9
Move nostr-tools to an import alias 2024-04-30 18:43:53 -05:00
Alex Gleason
1f5ba81e98
hydrateEvents: early return is only needed for stats? 2024-04-23 21:40:02 -05:00
Alex Gleason
a2c3daade7
hydrateEvents: return early if the results would be empty 2024-04-23 21:32:48 -05:00
Alex Gleason
b8d01ea3de
hydrateEvents: use filters to find events in memory 2024-04-23 21:10:21 -05:00
Alex Gleason
a1423bbf65
Fix hydrateEvents, lol 2024-04-23 20:11:07 -05:00
Alex Gleason
0aab3eb775
Rewrite hydrateEvents 2024-04-23 19:31:48 -05:00
P. Reis
58d75d1939 fix: hydrate events stats and author stats with filter by kind 2024-04-23 17:19:34 -03:00
P. Reis
5fca482e5c refactor(hydrate events): change array to Map 2024-04-23 17:04:05 -03:00
P. Reis
b77c8a00cd perf: make up to 5 calls to database in hydrateEvents & remove old hydrate functions 2024-04-22 22:15:36 -03:00
Alex Gleason
9c91e41e87
Switch NSpec to Nostrify, update imports 2024-04-19 16:39:35 -05:00
P. Reis
ae5fe1e0ac fix: hydrate event_stats in hydrateRepostEvents() 2024-04-19 10:23:34 -03:00
P. Reis
d5007162e4 refactor(hydrate): remove empty lines 2024-04-15 17:25:18 -03:00
P. Reis
a993051439 refactor: pass abort signal in hydrateRepostEvents 2024-04-15 17:19:37 -03:00
P. Reis
6248272243 feat: add quote repost 2024-04-15 17:19:37 -03:00
P. Reis
e77fd7d48b refactor: hydrate authors through hydrateEvents() call 2024-04-15 10:49:10 -03:00