Commit Graph

829 Commits

Author SHA1 Message Date
Alex Gleason 1cb53bdb84 Revert "Merge branch 'rework-cache' into 'main'"
This reverts merge request !156
2024-04-19 14:37:53 +00:00
P. Reis e2b377d9c7 fix: reblogged field boolean value takes into account viewerPubkey 2024-04-19 11:12:11 -03:00
P. Reis ae5fe1e0ac fix: hydrate event_stats in hydrateRepostEvents() 2024-04-19 10:23:34 -03:00
Alex Gleason e458f8da13
Introduce DATABASE_URL 2024-04-18 22:11:58 -05:00
P. Reis 7dd6378717 test: improv code coverage in quote repost hydration 2024-04-18 11:30:49 -03:00
Alex Gleason c62c31a171
updateStats: await getStatsDiff 2024-04-17 22:58:25 -05:00
P. Reis e19e41f826 fix: always populate quote_id if possible 2024-04-16 15:16:18 -03:00
P. Reis e4892c3e4a fix: response with quote field hydrated in create status 2024-04-16 14:44:04 -03:00
P. Reis a00a932ec1 refactor: deno fmt in hydrate test 2024-04-16 13:53:00 -03:00
P. Reis ed92001b75 test: fix so copied object is used instead of original object 2024-04-16 13:41:32 -03:00
P. Reis 3219b53682 test: add test for hydrate quote repost without author & fix tests' parallelism problem 2024-04-16 13:25:43 -03:00
P. Reis 4a9232faf7 test: add test for hydrate quote repost 2024-04-16 09:31:03 -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
P. Reis b9c1d0c5fb refactor(hydrate test): cast event as DittoEvent instead of any 2024-04-14 22:44:37 -03:00
P. Reis b79f8bef30 test: add test for hydrate repost 2024-04-14 21:02:57 -03:00
P. Reis dd53a111db test: add test to hydrate authors 2024-04-14 19:03:38 -03:00
P. Reis f9831ba74a refactor(events-db-test): resolve import specifier via the active import map 2024-04-14 10:32:22 -03:00
Alex Gleason fe6b42211c Merge branch 'perf-hydrate-repost' into 'main'
Perf hydrate repost

See merge request soapbox-pub/ditto!154
2024-04-13 21:37:54 +00:00
P. Reis 15853d79df refactor: remove kind 1 event from hydrateEvents in reblog controller 2024-04-13 18:31:30 -03:00
P. Reis 37bee709cd perf: hydrate repost events in reblog endpoint & streaming 2024-04-13 18:16:15 -03:00
Alex Gleason ff3d8e3f90
cache: use the old response body to prevent memory leaks 2024-04-13 14:36:31 -05:00
Alex Gleason afed0a0b34
cache: serve stale response 2024-04-13 14:34:37 -05:00
Alex Gleason 6ab3a640bf
Rework cache middleware to use in-memory cache, remove ExpiringCache module 2024-04-13 14:00:21 -05:00
Alex Gleason a738ed3d4d Merge branch 'instance-cache' into 'main'
Cache /api/v1/instance for 5 minutes

See merge request soapbox-pub/ditto!155
2024-04-13 18:30:40 +00:00
Alex Gleason 6aa877d930
Cache /api/v1/instance for 5 minutes 2024-04-13 13:28:08 -05:00
P. Reis 24efca5ea0 perf: hydrate repost event in home timeline 2024-04-12 21:51:57 -03:00
P. Reis 581ecd67d6 refactor(server): resolve import specifier via the active import map 2024-04-12 21:34:32 -03:00
P. Reis 0f4c76c761 refactor(fetch test): resolve import specifier via the active import map 2024-04-12 14:26:45 -03:00
P. Reis 073a3df17e feat: add support for quote repost 2024-04-12 14:07:22 -03:00
P. Reis 3ebcf7ea25 refactor: undo repost counter in getStatsDiff 2024-04-11 09:53:24 -03:00
P. Reis cdb0d817ed fix: repost counter works when undo repost 2024-04-10 19:15:24 -03:00
P. Reis 9f24f35a21 refactor: cast pubkey as string 2024-04-09 20:32:27 -03:00
Alex Gleason a63dc8be4e Apply 2 suggestion(s) to 1 file(s) 2024-04-09 22:08:37 +00:00
P. Reis 7e8401688c feat: undo repost 2024-04-09 18:27:17 -03:00
P. Reis 11f668dc8c refactor(interfaces): resolve import specifier via the active import map 2024-04-09 15:08:07 -03:00
P. Reis dd307f5b3f fix: always update home timeline in realtime when reposting 2024-04-09 11:35:18 -03:00
Alex Gleason 06ca3706b8 Apply 1 suggestion(s) to 1 file(s) 2024-04-09 14:27:41 +00:00
P. Reis 846c8824d4 Merge branch 'main' into 'fix-find-event'
# Conflicts:
#   src/views/mastodon/statuses.ts
2024-04-08 18:46:11 +00:00
Alex Gleason 9bfed222da
unfurlCard: fix types 2024-04-08 11:38:59 -05:00
Alex Gleason 57b0224517
renderReblog: fix types 2024-04-08 11:34:21 -05:00
P. Reis 0da9d2e3f4 fix: find event and not pubkey in renderReblog 2024-04-08 13:28:30 -03:00
Alex Gleason 70a29a74fb Merge branch 'repost-feat' into 'main'
feat: repost functionality

See merge request soapbox-pub/ditto!133
2024-04-08 15:54:43 +00:00
Alex Gleason d7d52bbdee Apply 1 suggestion(s) to 1 file(s) 2024-04-08 15:53:08 +00:00
Alex Gleason 1f7a4664ec Apply 2 suggestion(s) to 2 file(s) 2024-04-08 15:49:35 +00:00
Alex Gleason 595d5a4117
Avoid EventDB.count for single row fetches 2024-04-08 10:43:26 -05:00
Alex Gleason 2fb2b2ce2a
SqliteWorker: log query parameters 2024-04-08 09:13:20 -05:00
Alex Gleason 4e999d0f39
SqliteWorker: only call perf functions when debugging is enabled 2024-04-08 08:51:04 -05:00