Commit graph

2399 commits

Author SHA1 Message Date
Hazelnoot
fb65fcf890 use CacheService in users/show endpoint 2025-11-13 20:22:33 -05:00
Hazelnoot
5f50f51426 fix custom errors having the wrong name in stack traces 2025-11-11 20:07:28 -05:00
Hazelnoot
bc80fd7c49 fix cherry-pick errors 2025-11-07 00:22:32 -05:00
Hazelnoot
1eb7159173 add CacheService.findLocalUserByNativeToken and findOptionalLocalUserByNativeToken 2025-11-07 00:09:27 -05:00
Hazelnoot
6f0893a319 rename cacheService.getUsers to findUsers to match naming scheme 2025-11-07 00:09:26 -05:00
Hazelnoot
00e7473f1c remove localUserByNativeTokenCache, add userByAcctCache, and convert userByIdCache/nativeTokenCache/uriPersonCache to quantum caches 2025-11-07 00:04:55 -05:00
Hazelnoot
8271dc199e normalize cache constructors and detect duplicate cache names 2025-11-05 19:42:31 -05:00
Hazelnoot
73cc50fe90 fix user list API schema, access checks, and caching 2025-11-05 19:42:31 -05:00
Hazelnoot
24e565780e fix broken query in /emojis endpoint 2025-11-05 19:42:31 -05:00
Hazelnoot
15e76806ff fix rate limit in /emojis endpoint 2025-11-05 19:42:31 -05:00
Hazelnoot
5478dcce41 fix rebase errors 2025-11-05 19:42:30 -05:00
Hazelnoot
a55649e89a move global services to "global" directory 2025-11-05 19:42:28 -05:00
Hazelnoot
05be2596ea update backend to the new templates 2025-11-05 19:41:08 -05:00
Hazelnoot
b25eb703ea strip unsupported anyOf, oneOf, and allOf from param definitions 2025-11-05 19:41:08 -05:00
Hazelnoot
ed2feda974 validate "required" property when generating schemas 2025-11-05 19:41:08 -05:00
Hazelnoot
9beeca5942 modernize backend to target the same ES and TS standards as the rest of the app 2025-11-05 19:40:49 -05:00
Hazelnoot
542b99244a fix backend unit tests: migrate delete({}) to deleteAll() 2025-11-05 19:40:48 -05:00
Hazelnoot
3fc17fd0ee use cache in NotificationEntityService 2025-11-05 19:40:10 -05:00
Hazelnoot
ac196d5c6a fix openAPI schema generation 2025-11-05 19:35:31 -05:00
Hazelnoot
454e193b2f fix mfm import in MastodonConverters 2025-11-05 19:35:31 -05:00
Hazelnoot
3702729f26 update all dependencies 2025-11-05 19:29:50 -05:00
Hazelnoot
681afb2d9f fix type errors caused by dependency updates 2025-11-05 19:25:53 -05:00
Hazelnoot
c85b8bf56a remove Queues from ClientServerService DI 2025-11-05 19:21:51 -05:00
Hazelnoot
b9cff02c54 fix import in admin/invite/create endpoint 2025-11-05 19:21:50 -05:00
Hazelnoot
3a92471b68 convert all remaining backend code to TimeService 2025-11-05 19:21:50 -05:00
Hazelnoot
6cceca90f9 use TimeService everywhere in the backend 2025-11-05 19:21:46 -05:00
Hazelnoot
0684691993 fix crash if ServerService is disposed before being started 2025-11-05 19:20:25 -05:00
Hazelnoot
08fcb7f88c fix nodeinfo cache 2025-11-05 19:20:25 -05:00
Hazelnoot
79ea21fdc4 use CacheService in GetterService 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
2681e53846 manage previews cache 2025-11-05 19:20:25 -05:00
Hazelnoot
c03d592256 manage app cache 2025-11-05 19:20:21 -05:00
Hazelnoot
57511f26d9 commit missed changes 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
b32f3b5019 manage caches in SkRateLimiterService 2025-11-05 19:20:05 -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
ac9b787796 move userFollowingChannelsCache and federatedInstanceCache to CacheService for more reliable disposal 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
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
b48859e562 add pagination to i/shared-access/list and i/apps endpoints 2025-10-07 20:50:18 -04:00
Hazelnoot
90ff04eebc remove extraneous comment 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
9d6a667710 revert un-needed refactor (2) 2025-10-07 20:50:04 -04:00
Hazelnoot
3747708eb5 revert un-needed refactor 2025-10-07 20:50:04 -04:00
Hazelnoot
df750a6b65 pass client token through API via caller ID 2025-10-07 20:50:04 -04:00
Hazelnoot
2e61fafe57 pass "me" in a few places that lack it 2025-10-07 20:50:04 -04:00