Commit graph

601 commits

Author SHA1 Message Date
Hazelnoot
72a512a59d fix tests 2025-06-18 10:46:49 -04:00
Hazelnoot
54d99c9e8c fold renderUpNote into renderNote 2025-06-18 10:38:16 -04:00
Hazelnoot
c3a6ba93ca extract inline images from MFM and Markdown 2025-06-14 19:45:12 -04:00
Hazelnoot
b3548cde5b fix TS errors 2025-06-13 21:03:12 -04:00
Hazelnoot
7866e42d54 fix lint error 2025-06-13 19:28:09 -04:00
Hazelnoot
152d9dc36c add unit test for get-content-by-type.ts 2025-06-13 13:59:39 -04:00
Hazelnoot
353c294f67 add unit tests for extract-media-from-html.ts 2025-06-13 13:47:07 -04:00
dakkar
33aee38a59 Merge branch 'develop' into upstream/2025.5.0 2025-06-13 08:43:17 +01:00
Hazelnoot
7eca06d672 use pnpm package alias for @transfem-org/sfm-js 2025-06-12 21:11:16 -04:00
Hazelnoot
1a964cb6c0 pcleanup dependencies:
* Consolidate multiple different HTML/XML/RSS libraries to use the Cheerio stack
* Remove unused deps
* Move dev dependencies to correct section
* Pin versions where missing
2025-06-12 21:11:16 -04:00
Hazelnoot
20370e5e75 merge: Emit log messages with correct level (!1097)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1097

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-06-12 19:06:43 +00:00
dakkar
f6f3852b38 pick lints 2025-06-10 16:33:44 +01:00
dakkar
b4608aeb53 fix fetch-validate-ap-deny e2e test
our error messages are slightly different from upstream's
2025-06-10 16:22:09 +01:00
dakkar
363fb4db3a fix streaming e2e test
the test I toggled said:

* ayako follows kyoko, withReplies:false
* kyoko posts a reply to kanako
* ayako is looking at the global timeline
* ayako will see kyoko's reply

but I'm pretty sure we don't want that, so the test was wrong for
Sharkey and the backend behaviour is correct
2025-06-10 16:09:22 +01:00
dakkar
31e21d4d7d fix timeline e2e test 2025-06-10 16:04:02 +01:00
dakkar
88dac56efc fix notes e2e test 2025-06-10 15:37:20 +01:00
dakkar
26aef4d043 fix tests for new user shape 2025-06-10 14:49:04 +01:00
dakkar
3ebf9c4a71 Merge branch 'develop' into upstream/2025.5.0 2025-06-10 14:02:32 +01:00
Hazelnoot
424e163c6f fix type errors with JsonLdService and remove unused factory pattern 2025-06-09 11:03:51 -04:00
Hazelnoot
fa68751a19 normalize userFollowingsCache / userFollowersCache and add hibernatedUserCache to reduce the number of cache-clears and allow use of caching in many more places 2025-06-09 11:02:51 -04:00
Hazelnoot
372714c9b6 implement userFollowersCache 2025-06-09 11:02:36 -04:00
Hazelnoot
853b548a43 re-type userFollowingsCache to match the others 2025-06-09 11:02:36 -04:00
Hazelnoot
0c84d73294 move QuantumKVCache to a separate file 2025-06-09 11:02:36 -04:00
Hazelnoot
633b64e5c3 disable caches in unit tests 2025-06-09 11:02:36 -04:00
Hazelnoot
2e486f02ff implement no-op caches for testing 2025-06-09 11:02:36 -04:00
Hazelnoot
b7624666d6 implement QuantumKVCache.add and QuantumKVCache.addMany 2025-06-09 11:02:36 -04:00
Hazelnoot
207abaff88 implement QuantumKVCache.setMany and QuantumKVCache.seleteMany 2025-06-09 11:02:36 -04:00
Hazelnoot
1f2742ddd7 add ignoreRemote filter to InternalEventService 2025-06-09 11:02:36 -04:00
Hazelnoot
f446d77cb5 implement QuantumKVCache 2025-06-09 11:02:36 -04:00
Hazelnoot
aa7cadbb6c implement InternalEventService 2025-06-09 11:02:36 -04:00
Hazelnoot
2cba0ada3c more use of identifiable errors, improvements to inner error rendering, and more heuristics for is-retryable-error 2025-06-06 22:20:17 -04:00
Hazelnoot
d86530a069 remove unused fields from WebhookTestService.ts 2025-06-04 10:48:24 -04:00
Hazelnoot
838ac6daa9 fix unit tests 2025-06-04 10:47:19 -04:00
dakkar
46bb75d274 Merge branch 'develop' into upstream/2025.5.0 2025-05-30 11:13:37 +01:00
Hazelnoot
0912a8bb10 fix tests 2025-05-28 21:31:41 -04:00
Hazelnoot
35dfde838b add function diffArraysSimple for more efficient change detection 2025-05-28 21:31:40 -04:00
Hazelnoot
8a2ed3bc86 minor optimization to diff-arrays 2025-05-28 21:31:40 -04:00
Hazelnoot
788e59f046 fix type errors caused by new User, Note, and Instance fields 2025-05-28 21:31:40 -04:00
Hazelnoot
373c60b521 add diff-arrays utility for efficient array diffs 2025-05-28 21:31:40 -04:00
Hazelnoot
5af5414fdf enable TypeScript incremental mode to speed up IDEs 2025-05-28 21:31:39 -04:00
Hazelnoot
b888ff931d fix unit tests for HttpRequestService.ts 2025-05-13 22:27:18 -04:00
dakkar
94b07b2bc3 linting 2025-05-13 16:30:41 +01:00
dakkar
1b27fb1a65 fix types in test/utils.ts 2025-05-13 16:13:15 +01:00
dakkar
00f3a1b479 fix types in api-visibility.ts 2025-05-13 16:13:05 +01:00
dakkar
da9ebb9f0a fix test/e2e/nodeinfo.ts 2025-05-13 15:35:53 +01:00
dakkar
64d254f07f fix test/e2e/fetch-validate-ap-deny.ts 2025-05-13 15:35:03 +01:00
dakkar
bc1cd86b10 fix test/e2e/blocks.ts
by adding a note visibility check on the backend
2025-05-13 15:29:38 +01:00
dakkar
76b5ec5264 fix test/e2e/well-known.ts 2025-05-13 15:15:30 +01:00
dakkar
cd728bee22 fix test/e2e/fetch-resource.ts 2025-05-13 15:12:34 +01:00
dakkar
a9b6cc1c00 fix test/e2e/streaming.ts
that was a race condition
2025-05-13 14:56:44 +01:00