Commit graph

3636 commits

Author SHA1 Message Date
Marie
142b3b552e update comment 2025-05-05 23:04:43 +00:00
Marie
621f2e2ee4
upd: add logger, check hostname, add catch 2025-05-06 01:02:27 +02:00
Marie
381ea14049
upd: throw indetifiableerror instead of normal error 2025-03-28 20:16:34 +01:00
Marie
003c37e84c
upd: add comment, throw on missing details 2025-03-28 19:42:25 +01:00
Marie
0481b25a62
upd: create usingBunnyCDN 2025-03-28 14:36:44 +01:00
Marie
76b0c1ce26
Apply suggestions 2025-03-28 14:31:41 +01:00
Marie
137cb430b5
upd: remove default endpoint value 2025-03-28 05:40:59 +01:00
Marie
a35bfa9f1a
upd flip check 2025-03-28 00:46:23 +01:00
Marie
6dae5c9165
upd: remove old check 2025-03-28 00:42:28 +01:00
Marie
3bdac95bfd
upd: check if endpoint includes bunnycdn.com 2025-03-28 00:41:37 +01:00
Marie
97fb73ca2c
fix: test failing due to undefined 2025-03-28 00:33:13 +01:00
Marie
0dead4637e
add: bunnycdn storage support 2025-03-28 00:21:44 +01:00
Hazelnoot
73e70f7449 fix unit tests in activitypub.ts 2025-03-21 12:37:06 -04:00
Hazelnoot
27e8289126 fix lint errors in mock-resolver.ts and activitypub.ts 2025-03-21 12:37:06 -04:00
Hazelnoot
3958b71f4e don't discard the target of announce activities, in case it's a private note that can't be re-fetched 2025-03-21 12:37:06 -04:00
Hazelnoot
f88430aebc add IObjectWithId type for APIs that work with objects required to have an ID. 2025-03-21 12:37:06 -04:00
Hazelnoot
ad49faa956 implement ApResolver.secureResolve to use a provided object only if the authority matches 2025-03-21 12:37:06 -04:00
Hazelnoot
1ed2f207f7 fix startup crash caused by circular reference (SWC is not compatible with forwardRef) 2025-03-21 12:37:06 -04:00
Hazelnoot
f2bb01f7da support Announce(Activity) activities 2025-03-21 12:37:06 -04:00
Hazelnoot
1eb9070e39 allow overriding AP resolver recursion limit 2025-03-21 12:37:06 -04:00
Hazelnoot
c2740cbe73 add isActivity method to check for AP Activities 2025-03-21 12:37:06 -04:00
Hazelnoot
f18d402ce6 fix typo in activity signature mismatch error 2025-03-21 12:37:06 -04:00
Marie
65d5f1e081 merge: Optionally enable websocket compression (!921)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/921

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-03-19 17:40:49 +00:00
Hazelnoot
5182f17d32 implement replies collection for posts 2025-03-19 09:52:55 -04:00
PrivateGER
c08c8502e3
adjust compression fallback 2025-03-18 14:21:31 +01:00
Hazelnoot
bb3d710927 allow unsigned fetch for all system users 2025-03-16 10:49:16 -04:00
Hazelnoot
97da78b46c fix lint errors in activitypub.ts 2025-03-16 10:07:57 -04:00
Hazelnoot
e0f3780885 fix typescript error in WebhookTestService.ts (this is the WORST class and needs to be removed please /sob) 2025-03-16 10:07:57 -04:00
Hazelnoot
a35c2f214b convert Authorized Fetch to a setting and add support for hybrid mode (essential metadata only) 2025-03-16 10:07:57 -04:00
dakkar
d0a074ac89 fetch linked notes manually, unless we have them in DB - fixes 1006 2025-03-15 19:17:36 +00:00
Marie
a90a8e9e68 merge: Ignore empty content warnings in API (resolves #977) (!929)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/929

Closes #977

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-03-09 18:29:50 +00:00
Hazelnoot
49597e7e08 merge: Add LibreTranslate as an option to External Services (!935)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/935

Closes #807

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Hazelnoot <acomputerdog@gmail.com>
2025-03-06 17:21:24 +00:00
Marie
1f592f9166
upd: simplify checks 2025-03-06 16:48:32 +01:00
Marie
995ba34aa4 fix: use toLowerCase() to make sure usernameLower matches while compared to request with possibly capitalization 2025-03-06 02:37:07 +00:00
Marie
70d88805d5
chore: typecheck error 2025-03-06 01:23:15 +01:00
Marie
40599190f7
add: libretranslate 2025-03-06 01:03:02 +01:00
Marie
0d3d2ee6a3
chore: update sfm to 0.24.6 2025-03-05 15:52:35 +01:00
Lhc_fl
8d487be4be
small change to comment 2025-03-03 23:46:31 +08:00
Lhc_fl
381046a6b1
fix: always clone the note before hideNote 2025-03-03 23:03:20 +08:00
Hazelnoot
1483f96c3f collapse empty cw to null 2025-03-03 08:39:39 -05:00
Hazelnoot
0cd1292308 disable '@typescript-eslint/prefer-nullish-coalescing' for primitive types 2025-03-03 08:39:24 -05:00
Hazelnoot
908271c995 ignore empty CW with creating / editing notes 2025-03-03 01:30:29 -05:00
Hazelnoot
e44623d7c9 don't parse empty strings in timelineArgs.ts 2025-03-03 01:22:15 -05:00
Hazelnoot
9fdb68d568 remove fileId from importCustomEmojis log 2025-03-02 13:47:02 -05:00
Hazelnoot
e030facaa9 don't record deleted note, flash, page, or gallery post in modlog 2025-03-02 13:38:35 -05:00
Hazelnoot
f42790ad32 don't pass note into moderationLogService.log 2025-03-02 13:38:35 -05:00
Hazelnoot
c44c59e9ae remove embedded Note from "createPromo" mod logs 2025-03-02 13:38:32 -05:00
Hazelnoot
27d43879a2 add moderation logs for many endpoints
- `/admin/delete-all-files-of-a-user`
- `/admin/nsfw-user`
- `/admin/unnsfw-user`
- `/admin/silence-user`
- `/admin/unsilence-user`
- `/admin/accounts/create`
- `/admin/drive/clean-remote-files`
- `/admin/drive/cleanup`
- `/admin/emoji/set-category-bulk`
- `/admin/emoji/set-license-bulk`
- `/admin/emoji/set-aliases-bulk`
- `/admin/emoji/add-aliases-bulk`
- `/admin/emoji/remove-aliases-bulk`
- `/admin/emoji/import-zip`
- `/admin/federation/delete-all-files`
- `/admin/federation/remove-all-following`
- `/admin/promo/create`
- `/admin/relay/add`
- `/admin/relay/remove`
2025-03-02 13:38:02 -05:00
dakkar
504e90c190 merge: Remove assertActivityMatchesUrls in favor of three-way same-authority checks (resolves #956 and #914) (!914)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/914

Closes #956 and #914

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-03-02 18:36:04 +00:00
dakkar
92bac81a7f merge: handle scheduled notes when deleting and migrating accounts - fixes #931 #936 (!920)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/920

Closes #931 and #936

Approved-by: Marie <github@yuugi.dev>
Approved-by: Julia <julia@insertdomain.name>
2025-03-02 18:28:15 +00:00