Commit graph

3940 commits

Author SHA1 Message Date
おさむのひと
e40f3917f3
refactor: ファイルアップロード時のテストを追加 (#15928)
* refactor: ファイルアップロード時のテストを追加

* なぜかsemverが消えてた
2025-05-08 20:03:53 +02:00
おさむのひと
b91a67d74e
Revert "fix: 添付ファイルのあるリクエストを受けたときの初動を改善 (#15896)" (#15927)
* Revert "fix: 添付ファイルのあるリクエストを受けたときの初動を改善 (#15896)"

This reverts commit 7e8cc4d7c0.

* fix CHANGELOG.md
2025-05-08 20:02:13 +02:00
Marie
c5f5c6fef0 merge: Replace JSDOM with cheerio (!973)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/973

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-05-08 16:09:36 +00:00
Marie
aa9d834a39 merge: Improve inline quote detection and link previews (resolves #1047 and #1044) (!985)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/985

Closes #1047 and #1044

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-05-08 16:09:15 +00:00
Marie
849ce6abed merge: add scheduleNotePost queue to dashboard (!994)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/994

Approved-by: Hazelnoot <acomputerdog@gmail.com>
Approved-by: Marie <github@yuugi.dev>
2025-05-08 16:08:27 +00:00
dakkar
42f3976b16 add scheduleNotePost queue to dashboard 2025-05-08 16:43:52 +01:00
Hazelnoot
c43ac87df2 separate type imports for Cheerio 2025-05-08 11:31:36 -04:00
Hazelnoot
261a7e3ab3 fix type errors 2025-05-08 11:29:57 -04:00
Hazelnoot
231ef297b5 replace JSDOM with cheerio 2025-05-08 11:29:57 -04:00
Hazelnoot
a40cc82538 fix oauth data 2025-05-08 11:23:20 -04:00
Hazelnoot
b2ea03383c implement '/v1/apps/verify_credentials' 2025-05-08 11:23:20 -04:00
Hazelnoot
5ec9be0b8c fix "cannot use 'in' operator" error 2025-05-08 11:23:20 -04:00
Hazelnoot
22bba7fe6d fix media upload error caused by extraneous array brackets 2025-05-08 11:23:20 -04:00
Hazelnoot
347edb107b copy stack to AxiosError causes 2025-05-08 11:23:20 -04:00
Hazelnoot
38b1e1225c use isAxiosError to improve type detection 2025-05-08 11:23:20 -04:00
Hazelnoot
fefe2f6db8 more improvements to Mastodon error logging 2025-05-08 11:23:20 -04:00
Hazelnoot
34e0d73a60 differentiate between "error" and "exception" in mastodon API 2025-05-08 11:23:20 -04:00
Hazelnoot
2c5fb36e7f add missing "return reply" calls to async fastify routes
Required, according to docs: https://fastify.dev/docs/latest/Reference/Routes/#async-await
2025-05-08 11:23:20 -04:00
Hazelnoot
9db39d449f more fixes to Mastodon logging 2025-05-08 11:23:20 -04:00
Hazelnoot
b6f4fda80d handle AxiosErrors without a response 2025-05-08 11:23:20 -04:00
Hazelnoot
282ef9e673 split exception logging from error logging to simplify and improve mastodon errors 2025-05-08 11:23:20 -04:00
Hazelnoot
f7ca7a2cc0 minor refactor to ServerUtilityService.addMultipartFormDataContentType 2025-05-08 11:23:20 -04:00
Hazelnoot
3b44e11799 improvements to Mastodon error conversion 2025-05-08 11:23:20 -04:00
Hazelnoot
6757c227a9 check type of field values 2025-05-08 11:23:20 -04:00
Hazelnoot
cbe88122b9 fix hook targets 2025-05-08 11:23:20 -04:00
Hazelnoot
89cab66898 fix multipart/form-data decoding 2025-05-08 11:23:20 -04:00
Hazelnoot
c0f24eaf5d correctly parse response errors for logging 2025-05-08 11:23:20 -04:00
Hazelnoot
2aa3cf2731 debug-log mastodon error responses 2025-05-08 11:23:20 -04:00
Hazelnoot
e9ae78c0b7 enable debug logging for Mastodon API 2025-05-08 11:23:20 -04:00
Hazelnoot
fd5a3eb3f8 add logging.verbose option to enable debug logging in production. (same function as MK_VERBOSE environment variable) 2025-05-08 11:23:20 -04:00
Hazelnoot
7cd181df71 improve type checks in POST /api/v1/apps endpoint 2025-05-08 11:23:20 -04:00
Hazelnoot
317f5602fe temporary: add recursive error handler to MastodonApiServerService.ts 2025-05-08 11:23:20 -04:00
Hazelnoot
cd4fbc851b improve compatibility with multipart/form-data mastodon API requests 2025-05-08 11:23:20 -04:00
Hazelnoot
207915856a fix return type of fetchSummary and fetchSummaryFromProxy 2025-05-08 11:06:25 -04:00
Hazelnoot
1ac9625eea add same-authority check between fetched note and summary url 2025-05-08 11:05:15 -04:00
Hazelnoot
633718ffe9 avoid fetching notes twice in UrlPreviewService 2025-05-08 11:05:15 -04:00
Hazelnoot
70d75f1d57 check summary.haveNoteLocally after setting summary.activityPub to improve support for Akkoma 2025-05-08 11:05:15 -04:00
Hazelnoot
c05aa7a281 softer URL preview validation: remove unsupported URLs instead of rejecting the whole preview 2025-05-08 11:05:15 -04:00
Hazelnoot
d6c2140821 validate more URLs in UrlPreviewService.ts 2025-05-08 11:05:14 -04:00
Hazelnoot
23267a3a96 await cache update to avoid hammering redis in UrlPreviewService.ts 2025-05-08 11:05:14 -04:00
Hazelnoot
a1fcf554fa reduce caching for failed previews 2025-05-08 11:05:14 -04:00
Hazelnoot
c23b1c3be7 reduce log spam from UrlPreviewService.ts 2025-05-08 11:05:14 -04:00
Hazelnoot
163be8d4a4 match preview cache duration for HTTP and Redis 2025-05-08 11:05:14 -04:00
Hazelnoot
387efac23f add version specifier to URL preview cache 2025-05-08 11:05:14 -04:00
Hazelnoot
80819f03e7 don't proxy local URLs 2025-05-08 11:05:14 -04:00
Hazelnoot
05201f71cc allow summaly previews to redirect 2025-05-08 11:05:14 -04:00
Hazelnoot
1d2a4c6f56 infer ActivityPub links from signed GET 2025-05-08 11:05:14 -04:00
Hazelnoot
ab65f4b8b2 infer ActivityPub links from local DB 2025-05-08 11:05:14 -04:00
Hazelnoot
2fb56bc4ea fix eslint warning in UrlPreviewService.ts 2025-05-08 11:05:14 -04:00
Hazelnoot
129dfa9649 extract LocalSummalyResult type 2025-05-08 11:05:14 -04:00