Commit graph

4750 commits

Author SHA1 Message Date
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
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
Hazelnoot
ec3947b992 remove redundant async from i/shared-access/list 2025-10-07 20:47:36 -04:00
Hazelnoot
fa5a46f379 basic support for Shared Access Accounts 2025-10-07 20:47:34 -04:00
Lhc_fl
e6fd69f634
🐛 fix: userBlockedCache is invalid 2025-09-29 17:14:23 +08:00
Marie
741e612508 merge: Expand Mandatory CW feature and fixup block/mute/silence features (resolves #809, #910, #912, #943, #1064, #1142, and #1186) (!1148)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1148

Closes #809, #910, #912, #943, #1064, #1142, and #1186

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-09-25 20:05:46 +02:00
dakkar
9fe850893b fix exception type in test 2025-09-21 16:35:16 +01:00
Hazelnoot
0e6caa625c fix cw-note erasing parts of the note 2025-09-19 12:01:36 -04:00
dakkar
77852b8cce teach tests about the new way we fail websockets 2025-09-19 13:33:22 +01:00
dakkar
e111d8aa55 enable shutdown hooks in tests
just because
2025-09-19 13:04:13 +01:00
dakkar
0e985b77d6 fix wss error on shutdown
this is triggered by e2e tests
2025-09-19 13:03:08 +01:00
Hazelnoot
3ecfb02aaf fix references to nullable subscriber object 2025-09-19 02:42:09 -04:00
Hazelnoot
e68e0266a4 fix user's DMs not showing up in their own home timeline when Fanout Timeline is enabled 2025-09-18 22:08:33 -04:00
Hazelnoot
e1639f70df fix null safety in StreamingApiServerService.ts 2025-09-18 20:37:02 -04:00
Hazelnoot
6b281af9fa fix null safety in Connection.ts 2025-09-18 20:35:01 -04:00
Hazelnoot
2e03d2c88e fix unrelated type error in e2e/clips.ts 2025-09-18 20:31:03 -04:00
Hazelnoot
1eb20ded64 fix unrelated type error in e2e/clips.ts 2025-09-18 19:30:27 -04:00
Hazelnoot
4bab56609f follow-up fixes to NoteVisibilityService changes 2025-09-18 19:29:21 -04:00