Commit graph

1633 commits

Author SHA1 Message Date
Hazelnoot
d86530a069 remove unused fields from WebhookTestService.ts 2025-06-04 10:48:24 -04:00
Hazelnoot
ee3cd216f7 fix TS errors in ReversiService 2025-06-04 10:47:19 -04:00
Hazelnoot
f17e464188 fix WebhookTestService again 2025-06-04 10:47:15 -04:00
Hazelnoot
23302fe7d8 add relation from user->user_profile to speed up UserEntityService.pack and packMany 2025-06-04 10:45:18 -04:00
Hazelnoot
71f60d519b add targetInstance to abuse report schema 2025-06-04 10:45:05 -04:00
Hazelnoot
cfbf2c9c8e pack users with "me" context in AbuseUserReportEntityService 2025-06-04 10:45:05 -04:00
Hazelnoot
36d7126992 implement InstanceEntityService.fetchInstancesByHost 2025-06-04 10:45:05 -04:00
Hazelnoot
dae544b353 merge: Rework queries and add indexes to improve timeline performance (!1091)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1091

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-06-04 12:40:13 +00:00
Hazelnoot
52c9a94614 merge: Fix error caused by activity type confusion (!1090)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1090

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-06-04 12:38:20 +00:00
piuvas
f0a3b595ff
remove unused import. 2025-06-03 20:54:22 -03:00
Hazelnoot
d203e086f1 harden getApId and getNullableApId against type confusion 2025-06-03 19:42:43 -04:00
Hazelnoot
472c7b7f34 add instance.isSilenced to PackedUserLite 2025-06-03 17:11:51 -04:00
Hazelnoot
15ebb0ef85 more QueryService fixes 2025-06-03 15:12:59 -04:00
piuvas
d8ac2e347d
improve type validation of attributionDomains. 2025-06-03 12:45:42 -03:00
piuvas
fe91db1219
validate type of attributionDomains. 2025-06-03 12:24:42 -03:00
piuvas
1120ad19ae
merge develop and fix conflicts. 2025-06-03 10:56:10 -03:00
Hazelnoot
7ab5ce1537 replace generateBlockedHostQueryForNote allowSilenced parameter with generateSilencedUserQueryForNotes 2025-06-02 23:48:12 -04:00
Hazelnoot
0b9c0a6bc7 fix andWhere/orWhere in QueryService.ts 2025-06-02 22:51:10 -04:00
Hazelnoot
cbefbd2a33 refactor QueryService to use EXISTS instead of IN for most queries 2025-06-02 16:58:54 -04:00
Marie
a7ba809df4 merge: allow fragments in AP ID URLs - fixes polls (!1076)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1076

Approved-by: Hazelnoot <acomputerdog@gmail.com>
Approved-by: Marie <github@yuugi.dev>
2025-06-02 18:49:23 +00:00
Hazelnoot
d6156c5913 merge: Reduce overhead and DB error spam when a user changes their reaction (!1082)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1082

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-06-02 15:41:00 +00:00
Hazelnoot
3907355a48 replace upsert with insert+fetch and delete+insert 2025-06-01 19:56:42 -04:00
Hazelnoot
39fcdcae25 merge: Allow unauthenticated (logged-out) users to translate notes (!1055)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1055

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-06-01 20:52:19 +00:00
Hazelnoot
a5d49c8bbf merge: Use secureResolve for Actor collections (resolves #1087) (!1087)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1087

Closes #1087

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-06-01 20:39:40 +00:00
Hazelnoot
cea594053f merge: Fix logic error in generateBlockedHostQueryForNote (!1085)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1085

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-06-01 19:35:20 +00:00
Hazelnoot
a50a11fb4c remove duplicate isBlocked check from generateBlockedHostQueryForNote 2025-06-01 15:25:54 -04:00
Hazelnoot
7f976c443b use secureResolve for Actor collections 2025-06-01 15:13:13 -04:00
Hazelnoot
b7abc5b3b4 fix withRenotes check in generateMutedUserRenotesQueryForNotes 2025-06-01 14:42:44 -04:00
Hazelnoot
ac8fad2422 fix logic error in generateBlockedHostQueryForNote that would allow blocked instances if allowSilenced was set to false 2025-06-01 14:34:58 -04:00
Hazelnoot
15c45633e5 fix bad merge in UtilityService.ts 2025-06-01 14:19:39 -04:00
Hazelnoot
8894578b2a merge: Instance admin UX improvements (!1059)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1059

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-06-01 17:59:16 +00:00
Hazelnoot
37be5b1e37 merge: Increase default "max file size" role policy (resolves #1083) (!1078)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1078

Closes #1083

Approved-by: Marie <github@yuugi.dev>
Approved-by: dakkar <dakkar@thenautilus.net>
2025-06-01 17:37:38 +00:00
Hazelnoot
4c99406aa2 merge: Resolve AP collection items (prerequisite for future work) (!1067)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1067

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-06-01 17:34:24 +00:00
Hazelnoot
2db4da48ed reduce default maxFileSize to 25MB 2025-06-01 13:29:26 -04:00
Hazelnoot
e1504cfb88 merge: Persisted instance blocks (!1068)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1068

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-06-01 17:25:52 +00:00
Hazelnoot
8cfa19ce33 increase default "max file size" role policy to 100MB, matching "drive capacity" which was the original limit. 2025-06-01 11:39:37 -04:00
dakkar
034bfc02bd allow fragments in AP ID URLs - fixes polls
our own `renderVote` generates IDs like
`${this.config.url}/users/${user.id}#votes/${vote.id}/activity`

also `renderUpdate` generates
`${this.config.url}/users/${user.id}#updates/${new Date().getTime()}`

so we can't reject IDs with fragments
2025-06-01 14:06:04 +01:00
dakkar
993bd03134 merge: Block remote interactions with local-only posts (resolves #972) (!1070)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1070

Closes #972

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-05-30 20:45:55 +00:00
Hazelnoot
693cdde327 upsert reactions to avoid error+retry overhead 2025-05-30 15:37:27 -04:00
PrivateGER
f0207211d9
Import fs module with new syntax 2025-05-30 20:41:51 +02:00
Hazelnoot
b0a5efb357 block remote interactions with local-only posts 2025-05-30 13:10:46 -04:00
Hazelnoot
c13beacb3a change default value of canUseTranslator to false 2025-05-30 12:35:31 -04:00
PrivateGER
31f4325e86
make logger property readonly 2025-05-30 18:01:36 +02:00
PrivateGER
8948369a1b
import fs dep at file level 2025-05-30 18:00:12 +02:00
Hazelnoot
979c7628b1 disable status badge strip in admin-user and instance-info 2025-05-29 22:20:21 -04:00
PrivateGER
7ce8d0de44
Add error handling for video optimization in DriveService 2025-05-29 21:20:46 +02:00
PrivateGER
4ab3abaa14
Move supported MIME types into file-level const 2025-05-29 21:18:02 +02:00
PrivateGER
0bf006b7d7
Fix formatting and import spacing in VideoProcessingService 2025-05-29 20:40:15 +02:00
PrivateGER
7cba9c11d4
Add web optimization for video files during processing 2025-05-29 20:29:42 +02:00
Hazelnoot
4738b14d1c fix TypeORM error from MetaService.fetch 2025-05-28 21:31:40 -04:00