Commit graph

31039 commits

Author SHA1 Message Date
Hazelnoot
17a9b08f54 merge: merge the two post-form menus (!995)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/995

Approved-by: Marie <github@yuugi.dev>
Approved-by: Hazelnoot <acomputerdog@gmail.com>
2025-05-08 17:07:15 +00: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
Hazelnoot
b8ff441474 merge: Fix Mastodon API requests with multipart/form-data encoding (resolves #1024, #839, #699, #574, and #486) (!987)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/987

Closes #1024, #839, #699, #574, and #486

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-05-08 15:58:48 +00:00
dakkar
2de4b093ff merge the two post-form menus 2025-05-08 16:57:37 +01: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
5815d2f537 fix user-agent / authorization passing in megalodon 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
d9d0adbc6f fix indent of logging.verbose option 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
7db03f61b1 store OAuth "website" in POST /api/v1/apps 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