Commit graph

4768 commits

Author SHA1 Message Date
Hazelnoot
6f6ee0436e verify recursion limit in MockResolver 2025-11-05 19:20:04 -05:00
Hazelnoot
c45d6ea452 implement MockLoggerService.ts testing utility 2025-11-05 19:20:04 -05:00
Hazelnoot
5a28c4e110 implement kvp-array.ts utility 2025-11-05 19:20:04 -05:00
Hazelnoot
457fc38e6a normalize more TS configs 2025-11-05 19:20:04 -05:00
Hazelnoot
d135f09a60 fix "eslint missing" error in backend 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
b8e3f545c0 add missing shutdown hooks in unit tests 2025-11-05 19:20:04 -05:00
Hazelnoot
4db8d0b9ed make sure GlobalModule.dispose always completes 2025-11-05 19:20:04 -05:00
Hazelnoot
e7f93f19bf make sure QueueProcessorService.dispose always completes 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
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
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
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
f9a82fc424 remove commented code 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
Hazelnoot
7f547a8c10 revert 44ff9f39: pass access token through API to enforce rank 2025-10-07 20:50:01 -04:00
Hazelnoot
d7a629e178 fix type errors in NotificationService / NotificationEntityService 2025-10-07 20:49:42 -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
18622fb540 fix lint error in ApiCallService.ts 2025-10-07 20:49:28 -04:00
Hazelnoot
7a6ac302f5 return assigned permissions from /i endpoint (resolves #657) 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
e5cf9d3f9a add migration for access token rank 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