Commit graph

1391 commits

Author SHA1 Message Date
Hazelnoot
a8e3d19c5c fix moderation notes not saving 2025-11-14 18:59:09 -05:00
Marie
58751020c8 merge: Fix error when viewing a deleted remote user (!1242)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1242

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-11-14 20:19:08 +01:00
Hazelnoot
0757ca921f rename cacheService.getUsers to findUsers to match naming scheme 2025-11-13 20:22:34 -05:00
Hazelnoot
4d09ccbcc8 simplify logic in users/show lookup 2025-11-13 20:22:33 -05:00
Hazelnoot
fb65fcf890 use CacheService in users/show endpoint 2025-11-13 20:22:33 -05:00
Hazelnoot
295b744db1 await or track more background delivery 2025-11-12 17:07:58 -05:00
Hazelnoot
b3e41b74a1 implement admin/restart-migration endpoint 2025-11-12 17:07:58 -05:00
Hazelnoot
42b51e31fd return movedAt, movedTo, and alsoKnownAs from admin/show-user endpoint 2025-11-12 17:07:58 -05:00
Hazelnoot
bc80fd7c49 fix cherry-pick errors 2025-11-07 00:22:32 -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
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
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
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
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
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
563929bb81 fix user.permissions not respecting token or moderator perms 2025-10-07 20:50:16 -04:00
Hazelnoot
3747708eb5 revert un-needed refactor 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
Hazelnoot
7f547a8c10 revert 44ff9f39: pass access token through API to enforce rank 2025-10-07 20:50:01 -04:00
Hazelnoot
b62f6ca042 inline token metadata into the notification instead of just storing the ID 2025-10-07 20:49:38 -04:00
Hazelnoot
82cac0bbb7 add onlySharedAccess option to i/apps endpoint 2025-10-07 20:49:29 -04:00
Hazelnoot
35a167701f add notifications for shared access granted/revoked/login 2025-10-07 20:49:28 -04:00
Hazelnoot
e51bee48ec return token rank in i/shared-access/list 2025-10-07 20:49:28 -04:00
Hazelnoot
945260d175 fix error in i/shared-access/list 2025-10-07 20:49:28 -04:00
Hazelnoot
5742aade4c check that grantees are local 2025-10-07 20:49:28 -04:00
Hazelnoot
8955d05962 fix wrong API parameter in i/shared-access/login 2025-10-07 20:49:28 -04:00
Hazelnoot
49dad22609 replace shared_access_token table with an extra column on access_token 2025-10-07 20:49:28 -04:00
Hazelnoot
186c615e3f pass access token through API to enforce rank 2025-10-07 20:49:26 -04:00
Hazelnoot
fae87e03c0 enforce token rank in API 2025-10-07 20:48:42 -04:00
Hazelnoot
23e69eccbb show grantee and rank info in tokens list 2025-10-07 20:48:32 -04:00
Hazelnoot
fe53c16b23 rename sharedAccessTokensRepository to match naming convention 2025-10-07 20:48:32 -04:00
Hazelnoot
70b85e5215 allow tokens to limit a user's rank 2025-10-07 20:48:32 -04:00