Commit graph

1561 commits

Author SHA1 Message Date
Marie
2ce8a9b9a7 merge: handle "follow" notifs from deleted user (!1032)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1032

Approved-by: Hazelnoot <acomputerdog@gmail.com>
Approved-by: Marie <github@yuugi.dev>
2025-05-26 18:34:11 +00:00
Ruby Iris Juric
4291a3d648
add mediaDirectory config option to configure location of uploaded media 2025-05-26 22:52:00 +10:00
dakkar
28aa62f988 handle EntityNotFoundError on all calls to *.pack() 2025-05-25 12:42:59 +01:00
Hazelnoot
7f5e43530f enforce HTTPS for all federation 2025-05-25 00:04:27 -04:00
Hazelnoot
a2a38c78db merge: Experimental improvements to Delete Account process (maybe resolves #1035) (!1021)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1021

Closes #1035

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-05-15 13:00:47 +00:00
Hazelnoot
dee2e19b63 don't trend notes from non-explorable or non-trendable users 2025-05-14 23:24:51 -04:00
Hazelnoot
b4bce57fcb update user activity on Renote, Un-Renote, Note Edit, React, and Un-React 2025-05-14 23:24:51 -04:00
Hazelnoot
b22b5577b4 also delete AP logs for cascading notes 2025-05-14 23:24:51 -04:00
Hazelnoot
7cb7ed6fc9 decrement quote count correctly 2025-05-14 23:24:51 -04:00
Hazelnoot
60373cb24f fix references to userOrId 2025-05-14 23:24:51 -04:00
Hazelnoot
57d32ea900 enforce "can trend" role policy in trending user page 2025-05-14 23:24:51 -04:00
Hazelnoot
2e4ec0dd9e add role policy to allow note trending 2025-05-14 23:24:24 -04:00
Marie
1a9f8f782a merge: Allow port ranges in allowedPrivateIps (!1025)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1025

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-05-14 18:40:19 +00:00
Hazelnoot
ebd4ccdd55 enforce port restrictions against requests that happen to be missing the port 2025-05-13 22:22:40 -04:00
Hazelnoot
fb63167d85 allow private IP ranges to specify allowed ports 2025-05-12 21:44:45 -04:00
Hazelnoot
a8a8c41a9b allow caller to pass in existing reaction hint to ReactionService.delete 2025-05-12 21:38:11 -04:00
Hazelnoot
fe5def9de0 await delete account in queue in case of errors 2025-05-12 21:38:11 -04:00
Hazelnoot
077096d04e use deliverMany to reduce overhead of account deletion queue 2025-05-12 21:38:11 -04:00
Hazelnoot
7db48ffa8d add redis cache for note translations
* Partitioned by target language
* Invalidated if the note is edited
2025-05-12 21:35:06 -04:00
Hazelnoot
655290f8a4 add "is from local bubble instance" role condition 2025-05-12 13:31:16 -04:00
Hazelnoot
f8b2e272f1 merge: Fix word mute character calculation (resolves #861) (!1018)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1018

Closes #861

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-05-12 10:36:17 +00:00
Marie
4430c12e0e merge: Fix unique constraint error when processing a flurry of note pinning activities (!1024)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1024

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-05-12 10:30:44 +00:00
Hazelnoot
d3a9995d0a use transaction to avoid unique constraint error when processing duplicate Add/Remove pinned note activities 2025-05-11 06:02:52 -04:00
Hazelnoot
0cdb8e5b80 raise default character limit for word mutes 2025-05-10 21:44:25 -04:00
Hazelnoot
40a73bfcbe add new role conditions for local/remote followers/followees 2025-05-10 14:44:17 -04:00
Hazelnoot
56a8ff4f50 add isFromInstance role condition 2025-05-09 21:03:05 -04:00
Hazelnoot
164c85067f remove extra space in NoteCreateService.ts 2025-05-08 22:43:02 -04:00
Hazelnoot
1fe39ed432 re-fetch notes after create/edit to ensure they have all fields populated 2025-05-08 16:34:40 -04:00
Hazelnoot
58d2c4af6b use targetNotes to reduce duplicate code 2025-05-08 16:20:29 -04:00
Hazelnoot
5e2cc8eb85 avoid error when editing notes without any mentions 2025-05-08 16:20:29 -04:00
Hazelnoot
6c9dcb84ab resolve mentioned user handles on the backend 2025-05-08 16:20:29 -04: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
231ef297b5 replace JSDOM with cheerio 2025-05-08 11:29:57 -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
d6c2140821 validate more URLs in UrlPreviewService.ts 2025-05-08 11:05:14 -04:00
Hazelnoot
3fc2cc125b merge: when creating a note as a side-effect, make it silent - fixes #986 (!932)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/932

Closes #986

Approved-by: Marie <github@yuugi.dev>
Approved-by: Hazelnoot <acomputerdog@gmail.com>
2025-05-08 14:05:16 +00:00
Marie
a72610c8d6 merge: Reorder relay activities to avoid delivery race condition (resolves #989) (!986)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/986

Closes #989

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-05-08 09:17:07 +00:00
Marie
0195810b6a revert back to old check 2025-05-07 19:10:34 +00:00
Hazelnoot
c302a5c2d7 reorder relay activities to avoid delivery race condition 2025-05-07 12:40:01 -04:00
Hazelnoot
d39a56c1b7 merge: Merge upstream 2025.4.1 (!955)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/955

Closes #638, #1037, #734, and #766

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-05-07 16:33:18 +00:00
Marie
4eab54d2ca merge: Add BunnyCDN Edge Storage support (!952)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/952

Closes #1020

Approved-by: Hazelnoot <acomputerdog@gmail.com>
Approved-by: dakkar <dakkar@thenautilus.net>
2025-05-07 08:49:50 +00:00
Hazelnoot
95cd19b049 Merge branch 'develop' into merge/2025-03-24 2025-05-06 11:20:46 -04:00
Marie
893f964def merge: check signatures with and without query - fix #1036 (!966)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/966

Closes #1036

Approved-by: Hazelnoot <acomputerdog@gmail.com>
Approved-by: Marie <github@yuugi.dev>
2025-05-05 23:23:30 +00:00
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
dakkar
31d93c8052 nicer SQL checks for blocked hosts
instead of passing a (possibly gigantic) array from JS, we get
PostgreSQL to look at the value in the `meta` table directly

tested the `federation/instances` endpoint, and the `QueryService`
methods; I have not tested the charts
2025-05-02 15:57:56 +01:00