Commit Graph

749 Commits

Author SHA1 Message Date
Alex Gleason a4bc951eee
Add `supportedNips` to all storages 2024-01-03 21:39:54 -06:00
Alex Gleason 8ab0fefbf2
Memorelay: use EventSet data structure 2024-01-03 21:19:44 -06:00
Alex Gleason 384bb729b4
EventsDB: fix `this` binding of usersQuery 2024-01-03 20:59:46 -06:00
Alex Gleason 939eeae25a
Add Optimizer storage with EventSet 2024-01-03 20:22:02 -06:00
Alex Gleason 48ce1ba6c9
Memorelay: do some premature optimizations 2024-01-03 18:51:14 -06:00
Alex Gleason c235fa6123
Memorelay: normalize filters 2024-01-03 18:15:28 -06:00
Alex Gleason 5bffffe07b
Add a function to calculate the intrinsic limit of a filter 2024-01-03 17:20:29 -06:00
Alex Gleason 80e6147927
Make reqmeister a storage 2024-01-03 15:28:03 -06:00
Alex Gleason b5c23cf23f
Move EventsDB into storages 2024-01-03 14:45:56 -06:00
Alex Gleason cfe44876af
Memorelay: add supportedNips property 2024-01-03 14:06:13 -06:00
Alex Gleason f667ba3c69
Memorelay: reimplement by just looping events with matchFilters 2024-01-03 13:55:22 -06:00
Alex Gleason a1dad3a0c5
Memorelay: #events -> #cache 2024-01-03 12:54:38 -06:00
Alex Gleason 24c405b9b9
Add Memorelay storages module 2024-01-03 12:54:07 -06:00
Alex Gleason 792e47f0f7
renderStatus: fix repost and reaction events being switched 2024-01-01 18:39:22 -06:00
Alex Gleason 462b5b095c
debug: add debug to queries 2024-01-01 18:06:10 -06:00
Alex Gleason 9b68a9fc30 Merge branch 'debug-improvements' into 'main'
Debug improvements

See merge request soapbox-pub/ditto!94
2024-01-01 23:50:40 +00:00
Alex Gleason 777ac39ec7
debug: improve output for nip05 2024-01-01 17:47:15 -06:00
Alex Gleason d13b7435a7
debug: minimize socket close output 2024-01-01 17:30:01 -06:00
Alex Gleason 43359f787b
web.ts -> api.ts 2024-01-01 17:03:32 -06:00
Alex Gleason 1620668d5a
debug: log events signed through the API 2024-01-01 17:02:09 -06:00
Alex Gleason 1a15c21626 Merge branch 'pins' into 'main'
Support pinned statuses

See merge request soapbox-pub/ditto!93
2024-01-01 22:33:25 +00:00
Alex Gleason 57d7f7ff40
Support `pinned` param in accountStatusesController 2024-01-01 16:30:11 -06:00
Alex Gleason 3341d6aedd
Add pinController, unpinController 2024-01-01 16:23:08 -06:00
Alex Gleason 2d249ff20e Merge branch 'bookmark' into 'main'
Support Bookmarks

See merge request soapbox-pub/ditto!92
2024-01-01 20:54:47 +00:00
Alex Gleason 9841d193eb
Ensure bookmarks are displayed reverse-chronologically 2024-01-01 14:51:04 -06:00
Alex Gleason 5f6715db46
Add unbookmarkController 2024-01-01 14:35:46 -06:00
Alex Gleason b98487196f
Set `bookmarked` property of statuses, optimize status querying, fix relationships wrong assumption 2024-01-01 14:31:45 -06:00
Alex Gleason 5af0e0992f
db/events: ensure local bookmarks get indexed 2024-01-01 14:21:05 -06:00
Alex Gleason c8e2707704
Add bookmarkController, refactor generic views 2024-01-01 14:07:39 -06:00
Alex Gleason 69a44f9d2b
Add bookmarkController 2024-01-01 13:45:07 -06:00
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