Commit Graph

113 Commits

Author SHA1 Message Date
Alex Gleason
57e9534552 Zaps: dehydrate event before passing into LNURL callback 2024-01-24 15:47:19 -06:00
Alex Gleason
0fc8143889 Get rid of unnecessary memorelay module, replace with NCache 2024-01-23 17:50:33 -06:00
Alex Gleason
5b24b7ad39 Pass Request signal down from API controllers 2024-01-23 15:58:59 -06:00
Alex Gleason
77f2e2d940 pipeline: pass signals all the way down 2024-01-23 14:35:35 -06:00
Alex Gleason
c6062874bd Implement NStore interface from NLib 2024-01-23 14:06:51 -06:00
Alex Gleason
aaf01462c1 Update code to use new DittoEvent and DittoFilter. Event -> NostrEvent 2024-01-23 12:07:22 -06:00
Alex Gleason
b971b5274d Remove UserData type, hydrate the event instead 2024-01-23 10:56:17 -06:00
Alex Gleason
8494bd5f67 pipeline: pass signal down to everything that accepts it 2024-01-22 14:31:52 -06:00
Alex Gleason
c5e7b3bf0c pipeline: clean up zaps function 2024-01-22 14:24:37 -06:00
Alex Gleason
13c50c71bd Cache the LNURL response 2024-01-22 12:42:39 -06:00
Alex Gleason
d73fa7a311 Start simplifying LNURL code with NLib 2024-01-22 12:35:30 -06:00
Alex Gleason
b5a1220159 Publish NWC event from pipeline 2024-01-16 18:11:19 -06:00
Alex Gleason
40d3a46c16 pipeline: use fetchWorker properly for zaps, pass signal 2024-01-15 17:56:03 -06:00
Alex Gleason
455459bea7 pipeline: process zap requests by local users 2024-01-15 17:14:08 -06:00
Alex Gleason
e3631104a6 pipeline: fix admin event deletion 2024-01-11 19:11:04 -06:00
Alex Gleason
c4920ccb2e pipeline: let the admin pubkey delete anything with kind 5's 2024-01-11 19:05:34 -06:00
Alex Gleason
937ae1eab6 Refactor EventStore to use a more Set-like interface 2024-01-08 15:18:01 -06:00
Alex Gleason
f8a0698c3a Reqmeister: encounter -> storeEvent 2024-01-07 16:37:06 -06:00
Alex Gleason
a10108e109 Move client to a PoolStore storage class 2024-01-07 15:15:20 -06:00
Alex Gleason
ae44c08a2a Move Reqmeister to a dedicated storage class 2024-01-07 14:54:33 -06:00
Alex Gleason
b3e4b79439 Delete db/events.ts, db/memorelay.ts, move to @/storages.ts 2024-01-03 21:56:41 -06:00
Alex Gleason
38238cc4a8 Fix db/events test, remove unnecessary AbortSignal from pipeline 2023-12-29 21:21:56 -06:00
Alex Gleason
56373c4ce3 Refactor memorelay as an EventStore 2023-12-29 13:35:57 -06:00
Alex Gleason
ccfdbfeb8d Rework client as EventStore 2023-12-29 13:22:51 -06:00
Alex Gleason
e6c8d1dad9 Add an EventStore interface, refactor eventsDB 2023-12-29 13:12:16 -06:00
Alex Gleason
5ed2ecbabd Remove mixer module 2023-12-29 12:43:59 -06:00
Alex Gleason
08da26b12a reqmeister: accept signal 2023-12-28 13:41:04 -06:00
Alex Gleason
d40b4a509e pipeline: use memorelay for encounters 2023-12-27 23:36:01 -06:00
Alex Gleason
84a083bc7c debug: stringify tags 2023-12-27 22:27:05 -06:00
Alex Gleason
4e01e8e626 debug: more modules 2023-12-27 20:19:59 -06:00
Alex Gleason
2fc9988c06 reqmeister: middleware/cache, reqmeister, nip05, unfurl, refactor some code 2023-12-27 20:07:13 -06:00
Alex Gleason
520c35db60 Add debug library, adapt pipeline to it 2023-12-27 16:21:58 -06:00
Alex Gleason
62675218ce pipeline: trackRelatedEvents -> fetchRelatedEvents 2023-12-26 13:27:48 -06:00
Alex Gleason
17cef2f186 Merge remote-tracking branch 'origin/main' into threads 2023-12-22 22:56:12 -06:00
Alex Gleason
ad0aaf97dd Replace all timeouts with AbortSignal 2023-12-22 10:47:47 -06:00
Alex Gleason
6d6e3bcecc Move console.info from firehose to pipeline 2023-12-22 10:24:14 -06:00
Alex Gleason
acc133e8e2 Make Reqmeister work 2023-12-21 19:10:42 -06:00
Alex Gleason
4a32fe2c37 Add basic Reqmeister module 2023-12-21 14:56:21 -06:00
Alex Gleason
4f79b7ec29 stats: handle follow/following counts 2023-12-10 17:42:44 -06:00
Alex Gleason
bababe56f3 stats: update note count 2023-12-10 11:10:11 -06:00
Alex Gleason
d569dfd5b5 Add TrendsWorker for tracking/querying trending tags with a Web Worker 2023-12-04 16:33:02 -06:00
Alex Gleason
bc3f4bc534 Add verifySignatureWorker 2023-12-03 16:55:34 -06:00
Alex Gleason
b9476ccbd6 pipeline: delete unattached-media rows when authoring an event 2023-09-09 22:27:37 -05:00
Alex Gleason
96ff31719e db/events: pass EventData, index all media from local users 2023-09-09 15:48:03 -05:00
Alex Gleason
17c75e6761 Move pool to a separate module (to avoid importing firehose in tests) 2023-09-05 22:00:32 -05:00
Alex Gleason
a69b7f54f8 pipeline: broadcast deletions to all known relays 2023-09-05 21:45:30 -05:00
Alex Gleason
e2b88d57d9 pipeline: process kind 5 deletion events 2023-09-05 21:24:59 -05:00
Alex Gleason
22ddc7b1a8 pipeline: remove unnecessary async keyword from trackHashtags 2023-09-05 20:35:58 -05:00
Alex Gleason
48195f02b3 pipeline: don't store event if a deletion for it exists 2023-09-05 20:31:34 -05:00
Alex Gleason
02049ed9d1 pipeline: fix isFresh comparison 2023-09-05 17:10:20 -05:00