Commit graph

2008 commits

Author SHA1 Message Date
Hazelnoot
ad4f9823a2 merge: Fix stuck "new chat message" indicators when a room is deleted (!1216)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1216

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-08-16 19:08:33 +00:00
Marie
d872c6608f merge: Allow restricting announcement to a set of roles (!1161)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1161

Closes #682

Approved-by: Hazelnoot <acomputerdog@gmail.com>
Approved-by: Marie <github@yuugi.dev>
2025-08-16 08:11:08 +00:00
Hazelnoot
a92d3ca121 delete any "new chat" notifications when deleting rooms 2025-08-13 23:54:09 -04:00
Hazelnoot
1695f4c800 pass -map 0 to preserve all streams 2025-08-13 23:10:57 -04:00
наб
b61c1d5b27
forRoles IS NOT NULL, coalesce to empty=unrestricted 2025-08-11 23:53:05 +02:00
наб
f3b5c3f447
Allow restricting announcement to a set of roles. Fix MkRoleSelectDialog only respecting publicOnly half the time
Closes #682
2025-08-11 23:53:05 +02:00
bunnybeam
683638b570
implement conditional role tester 2025-08-04 19:40:00 +01:00
dakkar
b1021b3518 more sensible variable names
thanks Hazelnoot
2025-08-03 13:33:27 +01:00
dakkar
9b164003d4 more robust "delivery suspend software"
upstream's code doesn't allow any way to match a version that `semver`
can't parse, not even with `*`:

```
> semver.satisfies('1-2-3','*');
false
> semver.satisfies('1.3','*');
false
> semver.satisfies('1.2.3','*');
true
```

while I was there, I added support for regexp in both name and
version, and added unit tests
2025-08-03 12:40:17 +01:00
dakkar
8f7629a819 Merge branch 'stable' into stable-2025.4.4-to-develop 2025-08-02 10:34:25 +01:00
dakkar
0c7982697b ignore missing local files when deleting them
without this, clearing cached files would fail when some local files
had already been deleted

thanks to Siina for reporting the problem
2025-07-29 10:38:08 +01:00
dakkar
ce3531ed96 merge: Improve URL validation *FOR STABLE* (!1191)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1191

Approved-by: Hazelnoot <acomputerdog@gmail.com>
2025-07-28 19:28:01 +00:00
Hazelnoot
db15ac0fbb fix DI error in HttpRequestService.ts 2025-07-27 19:39:20 +01:00
Hazelnoot
25622b536c resolve domain names when checking for private URLs 2025-07-27 19:39:20 +01:00
Hazelnoot
3c59a7ae01 allow HTTP connections to private IPs 2025-07-27 19:39:20 +01:00
Hazelnoot
af967fe6be refactor actor validation to reduce code duplication 2025-07-27 19:39:20 +01:00
Hazelnoot
07959b4a97 merge: Fix a few more error logging sites (!1181)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1181

Approved-by: Marie <github@yuugi.dev>
Approved-by: dakkar <dakkar@thenautilus.net>
2025-07-27 18:38:15 +00:00
Hazelnoot
2f67882f82 merge: Fix Postgres / TypeORM errors *FOR STABLE* (!1192)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1192

Approved-by: Hazelnoot <acomputerdog@gmail.com>
2025-07-27 18:02:25 +00:00
Hazelnoot
823fdf2745 merge: Fix link verification for actors without a url field *FOR STABLE* (!1193)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1193

Approved-by: Hazelnoot <acomputerdog@gmail.com>
2025-07-27 18:01:58 +00:00
Hazelnoot
ec11092e8d fix cherry-pick error: restore CacheService.findOptionalUserById 2025-07-27 18:09:42 +01:00
Hazelnoot
84ca3621d8 fix users/report-abuse endpoint being really slow 2025-07-27 18:08:38 +01:00
Hazelnoot
2c8c422cb6 include profile URI for link verification 2025-07-27 18:03:35 +01:00
Hazelnoot
ea9335bcc8 fix more freeze / unfreeze errors caused by TypeORM bugs 2025-07-27 18:01:11 +01:00
Hazelnoot
73f2ee4fb3 fix user suspension / unsuspension not updating caches 2025-07-27 18:01:11 +01:00
Hazelnoot
f937f2d3c6 fix error in UserSuspendService.freezeAll and UserSuspendService.unFreezeAll caused by TypeORM bug 2025-07-27 18:01:11 +01:00
Hazelnoot
3dde7f25a6 move CaptchaError to a separate file to avoid circular import errors 2025-07-27 17:57:30 +01:00
Hazelnoot
d36b94c8cf fix URL errors from incorrect validation in validateActor 2025-07-27 17:57:30 +01:00
Hazelnoot
d3f672657e re-use parsed URI in validateActor 2025-07-27 17:57:30 +01:00
Hazelnoot
df0331ea04 verify URLs in DownloadService 2025-07-27 17:57:30 +01:00
Hazelnoot
982223ad38 validate all URLs before fetch 2025-07-27 17:57:26 +01:00
наб
c6e4c9294f
Allow for sending announcement mails with List-Unsubscribe:
Per https://datatracker.ietf.org/doc/html/rfc8058,
we send "announcement" mails with
  List-Unsubscribe: <${apiUrl}/unsubscribe/${userId}/${oneClickUnsubscribeToken}>
  List-Unsubscribe-Post: List-Unsubscribe=One-Click
and handle
  POST /api/unsubscribe/:user/:token => this unsubscribes
  GET  /api/unsubscribe/:user/:token => 302 /unsubscribe/:user/:token
  GET  /unsubscribe/:user/:token     => user-visible page with clickthrough confirmation

In this configuration, compatible MUAs will show an "unsubscribe" button
that, when clicked, will POST to the URL directly

Less-compatible MUAs (and scanners) will open the page directly
which will redirect to a click-though; interactive users will be able to
unsubscribe, scanners won't unsubscribe by accident

Nothing /actually/ sends non-reactive mails,
so this is never used at this time

Closes #854
2025-07-27 18:29:16 +02:00
Hazelnoot
924528749b fix cherry-pick error: restore CacheService.findOptionalUserById 2025-07-27 12:04:59 -04:00
Hazelnoot
534a25ddbf fix users/report-abuse endpoint being really slow 2025-07-27 12:04:42 -04:00
Hazelnoot
51ad31b5a4 merge: disable outgoing mastodon quotes *FOR STABLE* (!1169)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1169

Approved-by: Hazelnoot <acomputerdog@gmail.com>
Approved-by: Marie <github@yuugi.dev>
2025-07-27 15:30:10 +00:00
Hazelnoot
07295ad62d merge: Split descriptions. (!1167)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1167

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-07-27 15:29:41 +00:00
Hazelnoot
6173a827f7 merge: Deduplicate job queues (!1190)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1190

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-07-27 15:28:18 +00:00
Marie
41be003d79 merge: Slightly optimize i/update-remote-user endpoint by fetching from cache (!1185)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1185

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-07-27 14:23:06 +00:00
Hazelnoot
b6c8f4f876 merge: Add more "detail" flags to API endpoints (!1186)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1186

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-07-27 14:22:11 +00:00
Hazelnoot
1cf5988885 merge: Improve URL validation (!1155)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1155

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-07-27 14:21:20 +00:00
Hazelnoot
e46c3f14fa merge: Fix occasional API errors caused by null jobs (!1179)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1179

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-07-27 14:18:45 +00:00
Hazelnoot
94b6dec543 merge: Fix Postgres / TypeORM errors when suspending a user with follow relations (resolves #482) (!1178)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1178

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-07-27 14:14:13 +00:00
Hazelnoot
57d77b8f99 merge: Fix link verification for actors without a url field (!1180)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1180

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-07-27 14:13:51 +00:00
Hazelnoot
9eaf397b2d de-duplicate export jobs 2025-07-26 19:41:39 -04:00
Hazelnoot
30ea722751 de-duplicate delete drive files jobs 2025-07-26 19:39:50 -04:00
Hazelnoot
95a27f4eb4 de-duplicate object storage jobs 2025-07-26 19:39:01 -04:00
Hazelnoot
fc4ed0da5a de-duplicate relationship jobs 2025-07-26 19:37:54 -04:00
Hazelnoot
b9e610473b de-duplicate delete account jobs 2025-07-26 19:36:47 -04:00
Hazelnoot
4b29d59a9b de-duplicate import jobs 2025-07-26 19:34:58 -04:00
Hazelnoot
7da9225104 de-duplicate inbox activities by ID 2025-07-26 19:21:29 -04:00
Hazelnoot
71487f7881 render Update(*) activities with deterministic IDs 2025-07-26 19:21:19 -04:00