Commit graph

1985 commits

Author SHA1 Message Date
Hazelnoot
f77694d75a use TimeService in FetchInstanceMetadataService 2025-11-05 19:20:25 -05:00
Hazelnoot
ce77da52d0 fix lint warnings in ApNoteService.ts 2025-11-05 19:20:25 -05:00
Hazelnoot
f908b85e95 fix many circular dependencies (import, forwardRef, and use of methods that should be exported functions instead) 2025-11-05 19:20:25 -05:00
Hazelnoot
34ea8dcbc2 manage user keypairs cache 2025-11-05 19:20:06 -05:00
Hazelnoot
b49ba4b00d commit missed change 2025-11-05 19:20:06 -05:00
Hazelnoot
46398b3dcd manage system accounts cache and fix sync issues 2025-11-05 19:20:06 -05:00
Hazelnoot
32ea83927f manage sponsors cache 2025-11-05 19:20:06 -05:00
Hazelnoot
0e516126f7 manage roles and role assignments caches 2025-11-05 19:20:06 -05:00
Hazelnoot
a4784eec9a manage relays cache 2025-11-05 19:20:06 -05:00
Hazelnoot
ad5443d2cc manage push subscriptions cache 2025-11-05 19:20:06 -05:00
Hazelnoot
2caec2f530 manage avatar decorations cache 2025-11-05 19:20:06 -05:00
Hazelnoot
6ff3d506b5 fix public key caching 2025-11-05 19:20:06 -05:00
Hazelnoot
57511f26d9 commit missed changes 2025-11-05 19:20:06 -05:00
Hazelnoot
ea80af9243 fix webhook caching 2025-11-05 19:20:06 -05:00
Hazelnoot
2daf5c16ec fix list and instance caching, manage all CacheService caches, and fix list "with replies" setting 2025-11-05 19:20:05 -05:00
Hazelnoot
bb0925224d fix emoji caching 2025-11-05 19:20:05 -05:00
Hazelnoot
97300774c0 add InstanceStatsService 2025-11-05 19:20:05 -05:00
Hazelnoot
b5f2c743b2 remove dependency on UserEntityService from CacheService 2025-11-05 19:20:05 -05:00
Hazelnoot
373456fa17 move TimeService, EnvService, CacheManagementService, and InternalEventService to GlobalModule 2025-11-05 19:20:05 -05:00
Hazelnoot
411df0c0bf fix DI errors when using TimeService 2025-11-05 19:20:05 -05:00
Hazelnoot
239cc3de6d implement CacheManagementService to provided centralized management of cache instances 2025-11-05 19:20:05 -05:00
Hazelnoot
20b763c3c3 generate IDs based on TimeService 2025-11-05 19:20:04 -05:00
Hazelnoot
ab213f2146 make GlobalEventService depend on InternalEventService (instead of the other way around) so that they can eventually be separated 2025-11-05 19:20:04 -05:00
Hazelnoot
48cc7e21e3 make TimeService abstract and add support for managed timers 2025-11-05 19:20:04 -05:00
Hazelnoot
5f6578c8cd fix circular dependency caused by is-retryable-error, render-inline-error, and render-full-error 2025-11-05 19:20:04 -05:00
Hazelnoot
7c8d09f1c9 add missing bindThis() to OnModuleInit / OnApplicationShutdown handlers 2025-11-05 19:20:04 -05:00
Hazelnoot
92466ed569 fix circular dependency in NoteEntityService.ts 2025-11-05 19:20:04 -05:00
Hazelnoot
697c897d94 fix circular dependency in DriveFileEntityService.ts 2025-11-05 19:20:04 -05:00
Hazelnoot
5b01ed54b9 implement MockApResolverService.ts testing utility 2025-11-05 19:20:04 -05:00
Hazelnoot
6f6ee0436e verify recursion limit in MockResolver 2025-11-05 19:20:04 -05:00
Hazelnoot
4d9317ad2b make sure S3 clients are properly disposed 2025-11-05 19:20:04 -05:00
Hazelnoot
db4661397b fix accidental "import type" in FederatedInstanceService 2025-11-05 19:20:04 -05:00
Hazelnoot
89981285b2 make sure QueueModule.dispose always completes 2025-11-05 19:20:04 -05:00
Hazelnoot
910af0532c make sure ChartManagementService.dispose always completes 2025-11-05 19:20:04 -05:00
Hazelnoot
83adb5e887 add missing bindThis to several onApplicationShutdown hooks 2025-11-05 19:20:04 -05:00
Hazelnoot
ac9b787796 move userFollowingChannelsCache and federatedInstanceCache to CacheService for more reliable disposal 2025-11-05 19:20:04 -05:00
Hazelnoot
4b4efef5f9 add missing cache dispose/clear to CacheService 2025-11-05 19:20:04 -05:00
Hazelnoot
3c3253f84a remove duplicate event from CacheService 2025-11-05 19:20:04 -05:00
Hazelnoot
5a05978776 fix test errors caused by AppLockService opening Redis connections in the constructor 2025-11-05 19:20:04 -05:00
Hazelnoot
bac8c3859b fix test errors caused by QueueService opening BullMQ queues in the constructor 2025-11-05 19:20:04 -05:00
Marie
02e80f6ea6 merge: Fix note create/edit validation to prevent quote loops and other invalid notes (resolves #1194) (!1230)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1230

Closes #1194

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-11-03 23:17:12 +01:00
Hazelnoot
4c8ab73ecd fix rebase errors 2025-10-08 21:24:19 -04:00
Hazelnoot
edb74066da unify note create/edit logic to fix various logic bugs and validation gaps 2025-10-08 21:12:14 -04:00
Hazelnoot
24bc1c653d fix DMs converting to public notes when the audience can't be resolved 2025-10-08 21:11:05 -04:00
Hazelnoot
c2e52f6ae7 prevent packing renotes at infinite depth 2025-10-08 21:11:04 -04:00
Hazelnoot
74a7f96cc2 prevent remote instances from renoting a boost 2025-10-08 21:10:09 -04:00
Hazelnoot
9dc0d849ec recurse when preventing quote chains 2025-10-08 21:09:17 -04:00
Hazelnoot
36ee9382dd simplify checks for token roles 2025-10-07 20:50:18 -04:00
Hazelnoot
563929bb81 fix user.permissions not respecting token or moderator perms 2025-10-07 20:50:16 -04:00
Hazelnoot
f9a82fc424 remove commented code 2025-10-07 20:50:04 -04:00