Commit Graph

53 Commits

Author SHA1 Message Date
Alex Gleason 68b5887ed0
Don't let your memes be dreams 2024-05-14 18:24:34 -05:00
Alex Gleason 3513206de1
stickynotes alias 2024-05-01 16:14:50 -05:00
Alex Gleason c190d2c8ce
Refactor Storages to get lazy-loaded only when they are used 2024-05-01 14:56:47 -05:00
P. Reis d99fd753ee refactor(queries): convert getDescendants to async function 2024-04-30 11:18:20 -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 d688e64219 fix(queries): event deconstruct inside getEvent 2024-04-04 17:27:52 -03:00
P. Reis 152e06ce3c fix: event deconstruct inside getAuthor 2024-04-03 18:05:07 -03:00
Alex Gleason c8b378ad10
Remove DittoFilter, use search instead of local 2024-03-20 11:34:04 -05:00
Alex Gleason 8b9566d79b
Remove relations filters, switch some stuff to use optimizer (requires bravery) 2024-03-06 12:55:02 -06:00
Alex Gleason 0fc8143889
Get rid of unnecessary memorelay module, replace with NCache 2024-01-23 17:50:33 -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 826a244f47
Add status zap endpoint, publish zap request to pipeline 2024-01-15 16:43:56 -06:00
Alex Gleason 937ae1eab6
Refactor EventStore to use a more Set-like interface 2024-01-08 15:18:01 -06:00
Alex Gleason ae44c08a2a
Move Reqmeister to a dedicated storage class 2024-01-07 14:54:33 -06:00
Alex Gleason 96dd635661
@/store.ts -> @/storages/types.ts 2024-01-03 22:02:34 -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 462b5b095c
debug: add debug to queries 2024-01-01 18:06:10 -06:00
Alex Gleason 57d7f7ff40
Support `pinned` param in accountStatusesController 2024-01-01 16:30:11 -06:00
Alex Gleason 8023cfa7b2
Use a cleaner API for updating lists 2023-12-31 22:01:57 -06:00
Alex Gleason 56373c4ce3
Refactor memorelay as an EventStore 2023-12-29 13:35:57 -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 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
Alex Gleason f75cd21159
queries: make getAuthor use memorelay 2023-12-27 23:55:42 -06:00
Alex Gleason 2fc9988c06
reqmeister: middleware/cache, reqmeister, nip05, unfurl, refactor some code 2023-12-27 20:07:13 -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 acc133e8e2
Make Reqmeister work 2023-12-21 19:10:42 -06:00
Alex Gleason a5369d9826
Ensure relations are loaded throughout the API where needed 2023-12-10 16:21:18 -06:00
Alex Gleason a6947441fc
renderStatus: don't fetch the author, expect it to be passed in 2023-12-06 12:04:24 -06:00
Alex Gleason 9cd0a9bf22
Stop querying the pool 2023-10-09 13:17:02 -05:00
Alex Gleason 728f0bd657
accounts: followers/following & status counts
Fixes https://gitlab.com/soapbox-pub/ditto/-/issues/68
2023-08-30 09:50:51 -05:00
Alex Gleason 2841d4f399
queries: remove unused import 2023-08-29 13:25:58 -05:00
Alex Gleason 4d211d637e
timelines: add DRY renderStatuses function 2023-08-29 13:01:47 -05:00
Alex Gleason e6d1494a10
streaming: make user stream mostly work, in a kind of hacky way 2023-08-28 13:34:15 -05:00
Alex Gleason f198779ebe Merge branch 'sync' into 'develop'
Sync the user on verify_credentials

Closes #11

See merge request soapbox-pub/ditto!17
2023-08-19 19:09:09 +00:00
Alex Gleason 23928c0024
Move hono-related functions until utils/web 2023-08-19 14:05:08 -05:00
Alex Gleason eb4aebedd7
Sync the user on verify_credentials
Fixes https://gitlab.com/soapbox-pub/ditto/-/issues/11
2023-08-19 13:57:17 -05:00
Alex Gleason c08c801e71
Make following work 2023-08-19 13:37:44 -05:00
Alex Gleason b087d08306
Make the local timeline correctly filter only local users 2023-08-19 13:01:05 -05:00
Alex Gleason dc49c305bd
Move isLocallyFollowed to queries.ts 2023-08-17 19:32:05 -05:00
Alex Gleason 299a1a0db0
Refactor some code that uses getFilters to import the whole module under a namespace 2023-08-17 15:41:27 -05:00
Alex Gleason 4f37a1b9f8
queries: don't unnecessarily sort things 2023-08-17 14:55:00 -05:00
Alex Gleason 7330cd10e2
Refactor getEvent to take an opts object 2023-08-17 14:51:49 -05:00
Alex Gleason 054a399f23
queries: reduce getFollows timeout to 1s 2023-08-17 13:19:36 -05:00