Commit graph

2354 commits

Author SHA1 Message Date
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
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
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
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
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
Hazelnoot
0e6caa625c fix cw-note erasing parts of the note 2025-09-19 12:01:36 -04: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
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
49901cc46b merge: Conditional role tester (!1201)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1201

Closes #897

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Hazelnoot <acomputerdog@gmail.com>
2025-09-14 06:56:13 -04:00
Hazelnoot
e72d153cc8 merge: Add check to prevent creating too many active dialog announcements (!1175)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1175

Closes #769

Approved-by: Hazelnoot <acomputerdog@gmail.com>
Approved-by: dakkar <dakkar@thenautilus.net>
2025-09-14 06:54:53 -04:00
Hazelnoot
aee99a4000 merge: Better error handling in WebSocket (!1224)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1224

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-09-13 14:32:45 -04:00
Hazelnoot
13b6097a12 merge: Allow for sending announcement mails with List-Unsubscribe: (!1164)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1164

Closes #854

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Hazelnoot <acomputerdog@gmail.com>
2025-09-13 12:32:39 -04:00
Hazelnoot
f93693535e disconnect ws error event after promise resolves 2025-09-13 11:41:22 -04:00
Hazelnoot
4f68bbfd52 disconnect startup error handler after establishing connection 2025-09-13 11:41:22 -04:00
Hazelnoot
272f5cc5ab add error handler for connection 2025-09-13 11:41:22 -04:00
Hazelnoot
3770f4a86a disconnect pong() listener when closing connection 2025-09-13 11:41:22 -04:00
Hazelnoot
840f589651 disconnect message callback when disposing Connection instance 2025-09-13 11:41:22 -04:00
Hazelnoot
d18b910791 don't detach error handler until *after* socket close 2025-09-13 11:41:22 -04:00
Hazelnoot
49eb26694a add error handler for ws library 2025-09-13 11:41:22 -04:00
Hazelnoot
d118333f54 Revert "fix note ordering in antennas"
This reverts commit 39d76f7d662f66cf5d1a0396c43820ddc89362fc.
2025-09-13 11:34:39 -04:00
Hazelnoot
2e41f580e3 fix API return type of cw-instance, cw-user, and cw-note endpoints 2025-09-13 11:34:38 -04:00
Hazelnoot
d960c4b863 trim mandatory CWs 2025-09-13 11:34:38 -04:00
Hazelnoot
cd25ed8d18 remove no-op Fanout alwaysIncludeMyNotes option 2025-09-13 11:34:38 -04:00
Hazelnoot
877e93a847 don't hide replies in clips 2025-09-13 11:34:38 -04:00
Hazelnoot
8ca9f90afe normalize more endpoint filtering code 2025-09-13 11:34:38 -04:00
Hazelnoot
a756b309f0 don't filter /drive/files/attached-notes when called by a moderator 2025-09-13 11:34:38 -04:00
Hazelnoot
f5df44e028 enforce role policies in /notes endpoint 2025-09-13 11:34:38 -04:00
Hazelnoot
6e00abc1f0 call generateExcludedRepliesQueryForNotes from bubble, global, hybrid, local, home, list, and role timelines 2025-09-13 11:34:38 -04:00
Hazelnoot
a4012b535b exclude muted author in list timelines 2025-09-13 11:34:38 -04:00