Commit graph

32092 commits

Author SHA1 Message Date
Julia
93488f862c Fix .gitlab-ci.yml 2025-08-12 18:55:24 +00:00
Hazelnoot
dd85f90321 merge: Rework CI to be more efficient (!1211)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1211

Approved-by: Hazelnoot <acomputerdog@gmail.com>
2025-08-12 18:25:35 +00:00
Julia Johannesen
cebfa0777f
Optimize CI with simple parallelization and a flag for kaniko 2025-08-10 01:14:03 -04:00
Hazelnoot
5dd32123a3 merge: Scale height of multiline text inputs based on font size (!1208)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1208

Closes #1171

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Hazelnoot <acomputerdog@gmail.com>
2025-08-10 04:22:07 +00:00
Hazelnoot
69f88d2184 merge: better git version info (!1203)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1203

Approved-by: Marie <github@yuugi.dev>
Approved-by: Hazelnoot <acomputerdog@gmail.com>
2025-08-09 16:11:50 +00:00
bunnybeam
ee60795098
change various multiline inputs to use em instead of px for min-height 2025-08-08 17:38:51 +01:00
Marie
0f6413d4b9 merge: more robust "delivery suspend software" (!1204)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1204

Approved-by: Hazelnoot <acomputerdog@gmail.com>
Approved-by: Marie <github@yuugi.dev>
2025-08-08 08:25:20 +00: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
Marie
4505a848f6 merge: merge stable to develop after 2025.4.4 (!1202)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1202

Approved-by: Hazelnoot <acomputerdog@gmail.com>
Approved-by: Marie <github@yuugi.dev>
2025-08-02 16:10:27 +00:00
dakkar
1b213dece8 better git version info
My previous patch to embed git version info in nodeinfo had some
issues, like it produced `2024.4.4-249-g04d45859e6` when building on
current `develop`, which is arguably correct but not helpful (it
should really say `2025.5.2-dev` somewhere!)

* if we're on a tag, trust `package.json`
* if we're not, *append* the current commit hash

so for example, building on `stable` right now gets you `2025.4.4`,
and building on the parent of this commit gets you
`2025.5.2-dev+g04d45859e6`

the `+` is correct according to https://semver.org/
2025-08-02 11:07:57 +01:00
dakkar
8f7629a819 Merge branch 'stable' into stable-2025.4.4-to-develop 2025-08-02 10:34:25 +01:00
dakkar
a2bc6603c2 merge: For 2025.4.4 (!1199)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1199

Approved-by: Hazelnoot <acomputerdog@gmail.com>
Approved-by: Marie <github@yuugi.dev>
2025-07-31 21:53:33 +00:00
Marie
04d45859e6 merge: prevent excessive trimming in emoji picker's input box - fix #1165 (!1197)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1197

Closes #1165

Approved-by: Hazelnoot <acomputerdog@gmail.com>
Approved-by: Marie <github@yuugi.dev>
2025-07-30 18:50:51 +00:00
Marie
b9f96c259f merge: remove mousemove callback when there's no longer a cat - fix #1158 (!1198)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1198

Closes #1158

Approved-by: Hazelnoot <acomputerdog@gmail.com>
Approved-by: Marie <github@yuugi.dev>
2025-07-30 18:50:40 +00:00
Marie
05a73d8f35 merge: ignore missing local files when deleting them (!1200)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1200

Approved-by: Hazelnoot <acomputerdog@gmail.com>
Approved-by: Marie <github@yuugi.dev>
2025-07-30 18:49:31 +00: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
dakkar
2b083287a5 mark the callback as "passive", should improve performance
see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#using_passive_listeners
2025-07-28 15:55:36 +01:00
dakkar
b3857c6d9a remove mousemove callback when there's no longer a cat 2025-07-28 15:53:16 +01:00
dakkar
884ccad588 prevent excessive trimming in emoji picker's input box
there's no reason to trim before assigning to `q.value` (which gets
reflected to the `<input>` control and ends up trimming end spaces
when back-spacing)

the stated reason for messing with the control's own value every time
it changes, is to handle changes while Android is composing; I've
tested that, while I'm composing a character with my input method on
X11, search responds to each keypress, and I think it's good enough
2025-07-28 15:27:20 +01:00
Hazelnoot
7d005876fb merge: make trustedDomains persist across reloads (!1174)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1174

Approved-by: Marie <github@yuugi.dev>
Approved-by: Hazelnoot <acomputerdog@gmail.com>
2025-07-27 20:33:37 +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
9e244c2de7 merge: Fix extremely poor performance of users/report-abuse endpoint (!1183)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1183

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-07-27 18:05:49 +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
b39439f9fb merge: Fix factor scaling in rate limit *FOR STABLE* (!1194)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1194

Approved-by: Hazelnoot <acomputerdog@gmail.com>
2025-07-27 18:02:12 +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
9b866613d7 merge: Fix extremely poor performance of users/report-abuse endpoint *FOR STABLE* (!1195)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1195

Approved-by: Hazelnoot <acomputerdog@gmail.com>
2025-07-27 18:01:55 +00:00
dakkar
8994a95f13 bump release version 2025-07-27 18:50:22 +01: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
9ac58e6107 scale rate limit dripRate with factor 2025-07-27 18:05:35 +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
dc19b18112 add comment about validation in verify-field-link.ts 2025-07-27 17:57:30 +01:00
Hazelnoot
e8c7134123 remove unused console logging fallbacks 2025-07-27 17:57:30 +01:00
Hazelnoot
bf455c2f7a use logger instead of console for uncaughtException debug lines 2025-07-27 17:57:30 +01:00
Hazelnoot
283facdd31 add workarounds for node-fetch crashes 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
3849e8c15a use shared URL verification in verifyLinkFields 2025-07-27 17:57:30 +01:00
Hazelnoot
982223ad38 validate all URLs before fetch 2025-07-27 17:57:26 +01:00