Commit graph

4366 commits

Author SHA1 Message Date
Hazelnoot
dee2e19b63 don't trend notes from non-explorable or non-trendable users 2025-05-14 23:24:51 -04:00
Hazelnoot
0b8c101d71 check ps.trending before hiding non-explorable users from /users endpoint 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
81910cf725 add new featured tab for "users popular locally" 2025-05-14 23:24:48 -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
Marie
7b0ee41c77 merge: Cache note translations in Redis (!1027)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1027

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-05-14 18:36:53 +00:00
Hazelnoot
dc79244f5b fix parsing bare IPs 2025-05-13 22:28:19 -04:00
Hazelnoot
b888ff931d fix unit tests for HttpRequestService.ts 2025-05-13 22:27:18 -04:00
Hazelnoot
e914be3694 fix "network" property in allowedPrivateNetworks 2025-05-13 22:24:48 -04:00
Hazelnoot
ebd4ccdd55 enforce port restrictions against requests that happen to be missing the port 2025-05-13 22:22:40 -04:00
Hazelnoot
4ddb16aa9a rename "mask" to "prefixLength" for clarity 2025-05-13 22:21:03 -04:00
Hazelnoot
5116586d79 improve YAML syntax for defining allowed IPs 2025-05-13 22:19:24 -04:00
Hazelnoot
e7ee2cc398 add configurable timeout for note translations 2025-05-12 21:48:21 -04:00
Hazelnoot
fb63167d85 allow private IP ranges to specify allowed ports 2025-05-12 21:44:45 -04:00
Hazelnoot
7b54a3ca48 allow user to be deleted if profile is missing 2025-05-12 21:38:11 -04:00
Hazelnoot
0a7ef89a17 delete user registry items 2025-05-12 21:38:11 -04:00
Hazelnoot
fdf67f6fc7 don't sent account deletion notice until after it actually completes 2025-05-12 21:38:11 -04:00
Hazelnoot
7cf293de94 add more manual steps to process account deletion in smaller chunks 2025-05-12 21:38:11 -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
7ad772116b delete user reactions before notes 2025-05-12 21:38:10 -04:00
Hazelnoot
4e8993bad7 add debug logging for translation endpoint 2025-05-12 21:35:06 -04:00
Hazelnoot
871a4d3fb1 cache and re-use note translations 2025-05-12 21:35:06 -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
03b1960e63 set common default values for RedisKVCache callbacks 2025-05-12 21:35:06 -04:00
Hazelnoot
61aaa586fe add hasText type guard for notes 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
Hazelnoot
c0c41af5f9 merge: Fix hidden hashtags showing on the explore / trending page (!1014)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1014

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-05-12 10:33:09 +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
a46887d05f fix calculation of word mute 2025-05-10 21:44:10 -04:00
Hazelnoot
40a73bfcbe add new role conditions for local/remote followers/followees 2025-05-10 14:44:17 -04:00
Hazelnoot
9f5c279478 don't show hidden hashtags on the trending page 2025-05-10 14:42:05 -04:00
Hazelnoot
56a8ff4f50 add isFromInstance role condition 2025-05-09 21:03:05 -04:00
JeDaYoshi
f2998e05dc
properly announce Accept-Ranges on drive files 2025-05-09 21:59:41 +00:00
dakkar
7b987d3745 enforce username uniqueness for local instance 2025-05-09 19:06:43 +01:00
Hazelnoot
5101a5662b merge: Autofill reply mentions based on the replies property instead of MFM text (resolves #1045) (!981)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/981

Closes #1045

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-05-09 09:28:11 +00:00
Marie
093f67ae55 merge: Check for truncated uploads in Mastodon API (!998)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/998

Approved-by: Marie <github@yuugi.dev>
Approved-by: dakkar <dakkar@thenautilus.net>
2025-05-09 09:27:42 +00:00
Hazelnoot
164c85067f remove extra space in NoteCreateService.ts 2025-05-08 22:43:02 -04:00
Hazelnoot
7bfe16cbb0 check for stream truncation in saveToTempFile 2025-05-08 16:43:52 -04:00
Hazelnoot
e75e4f11a2 match saveToTempFile return type with other create-temp function 2025-05-08 16:42:16 -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