Commit Graph

769 Commits

Author SHA1 Message Date
Alex Gleason 89bdc21caa Merge branch 'blocks' into 'main'
Support /api/v1/block, and /api/v1/accounts/:id/unblock

See merge request soapbox-pub/ditto!91
2024-01-01 19:14:26 +00:00
Alex Gleason 38241d011d
Add missing newline 2024-01-01 13:08:32 -06:00
Alex Gleason 3807ca175f
Add unblock and unfollow endpoints 2024-01-01 12:50:09 -06:00
Alex Gleason 5b7c3a1d5e
Support GET /api/v1/blocks 2024-01-01 12:44:50 -06:00
Alex Gleason 0c311732d3 Merge branch 'nip51' into 'main'
Add support for blocking, refactor user lists (NIP-51)

See merge request soapbox-pub/ditto!90
2024-01-01 05:42:34 +00:00
Alex Gleason 84eb4cec2e
Add blockController, fix bugs 2023-12-31 23:35:37 -06:00
Alex Gleason 6d1375ba59
Optimize the relationships controller, support block relationships 2023-12-31 22:56:21 -06:00
Alex Gleason 63fb934220
setTag -> addTag 2023-12-31 22:06:35 -06:00
Alex Gleason 8023cfa7b2
Use a cleaner API for updating lists 2023-12-31 22:01:57 -06:00
Alex Gleason e341ec7b36
db/events: respect the signal 2023-12-31 21:01:30 -06:00
Alex Gleason f665c5f825
Remove isFollowing util 2023-12-31 20:31:06 -06:00
Alex Gleason dc27ee05d4
Create `updateListEvent` helper function 2023-12-31 20:13:49 -06:00
Alex Gleason 335f7dc281
Add tags module 2023-12-31 14:05:55 -06:00
Alex Gleason e5c8f8c146
Bump the timeout a bit when fetching an individual status 2023-12-31 12:48:49 -06:00
Alex Gleason 8c52ae80e4
reqmeister: fix eventhandler memory leak, fix promise resolving too soon, respect the signal 2023-12-31 12:47:28 -06:00
Alex Gleason 952b3f0d66
Fix http logger 2023-12-31 12:47:00 -06:00
Alex Gleason f62662b89f
deno.json: add back `debug` task
The devserver refuses to restart automatically when `--inspect` is enabled
2023-12-30 11:41:08 -06:00
Alex Gleason d133b6f009
Add Event<30361> fixture 2023-12-30 10:29:05 -06:00
Alex Gleason e869651c63
users: remove duplicate debug call 2023-12-30 09:58:12 -06:00
Alex Gleason 79349124bc
Prevent duplicate usernames from being added 2023-12-30 09:57:33 -06:00
Alex Gleason a564a03ee3 Merge branch 'users-to-events' into 'main'
Convert users to events

See merge request soapbox-pub/ditto!89
2023-12-30 06:06:48 +00:00
Alex Gleason 47e5696a1b
gitlab-ci: fix DITTO_NSEC in tests 2023-12-29 23:29:38 -06:00
Alex Gleason 529bc11da1
Support replaceable events and parameterized replaceable events (delete old versions upon insert) 2023-12-29 23:21:05 -06:00
Alex Gleason 08059f6b40
docs: nip78.md -> events.md 2023-12-29 21:22:59 -06:00
Alex Gleason 38238cc4a8
Fix db/events test, remove unnecessary AbortSignal from pipeline 2023-12-29 21:21:56 -06:00
Alex Gleason 3472428da8
relay: fix wrong function name 2023-12-29 21:12:57 -06:00
Alex Gleason f6a8ab570f
db/events: simplify it further 2023-12-29 21:08:59 -06:00
Alex Gleason b39902d322
Load local timeline a lot faster by using leftJoin instead of innerJoin, wow 2023-12-29 21:05:31 -06:00
Alex Gleason 9492b7654f
db/events: fix the `local` filter 2023-12-29 20:53:01 -06:00
Alex Gleason 358396fdac
Drop users table 2023-12-29 17:01:23 -06:00
Alex Gleason 13bf936088
Convert users to Events 2023-12-29 16:37:18 -06:00
Alex Gleason 716a7019c2 Merge branch 'store-refactor' into 'main'
Add EventStore interface, extend eventsDB, client, and memorelay from it

See merge request soapbox-pub/ditto!88
2023-12-29 19:55:29 +00:00
Alex Gleason 4ce51014de
events.test: fix type error 2023-12-29 13:53:09 -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 62071173d9 Merge branch 'rm-mixer' into 'main'
Remove mixer module

See merge request soapbox-pub/ditto!87
2023-12-29 18:46:17 +00:00
Alex Gleason 5ed2ecbabd
Remove mixer module 2023-12-29 12:43:59 -06:00
Alex Gleason e01383629e
unfurl: fix missing import, debug errors 2023-12-28 15:55:48 -06:00
Alex Gleason 5cbfbe5eaa Merge branch 'pool-worker' into 'main'
Move the RelayPool to a worker thread

See merge request soapbox-pub/ditto!78
2023-12-28 20:31:18 +00:00
Alex Gleason 69d93b7cab
Merge remote-tracking branch 'origin/main' into pool-worker 2023-12-28 14:22:51 -06:00
Alex Gleason a74d945f13 Merge branch 'memorelay' into 'main'
Add in-memory Nostr data store

See merge request soapbox-pub/ditto!86
2023-12-28 20:02:57 +00:00
Alex Gleason 08da26b12a
reqmeister: accept `signal` 2023-12-28 13:41:04 -06:00
Alex Gleason 2d19ab207e
Add memorelay.test.ts 2023-12-28 13:36:50 -06:00
Alex Gleason 33eead2148
Add filter.test.ts 2023-12-28 13:26:41 -06:00
Alex Gleason b3c7e22052
memorelay: increase LRU limits 2023-12-28 12:15:24 -06:00
Alex Gleason da6738a405
db/events: debug getFilters -> REQ 2023-12-28 12:07:49 -06:00
Alex Gleason 2b1e97ee1b
queries: get author from memory when possible 2023-12-28 00:39:05 -06:00
Alex Gleason c2b25bc798
queries: refactor getEvent, getAuthor 2023-12-28 00:27:25 -06:00
Alex Gleason 96e6bd18b4
queries: pull from memorelay when applicable, optimize 2023-12-28 00:15:51 -06:00