Commit graph

4366 commits

Author SHA1 Message Date
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
51d9b1c8c5 fetch followings asynchronously in bubble-timeline.ts 2025-06-02 17:34:35 -04:00
Hazelnoot
7f0a705612 use generateMatchingHostQuery in bubble-timeline.ts 2025-06-02 17:34:07 -04:00
Hazelnoot
c49341e7be match if(me) formatting of other endpoints in bubble-timeline.ts 2025-06-02 17:32:26 -04:00
Hazelnoot
005b23947e reduce calls to generateMutedUserRenotesQueryForNotes in bubble-timeline.ts 2025-06-02 17:32:06 -04:00
Hazelnoot
0ccbb8f3cf fix hasPoll check in bubble-timeline.ts 2025-06-02 17:31:09 -04:00
Hazelnoot
d4ea917869 remove incorrect requireSigninToViewContents check in bubble-timeline.ts 2025-06-02 17:30:34 -04:00
Hazelnoot
022c49f45f fix query slowdown caused by unnecessary userHost IS NOT NULL condition in bubble-timeline.ts 2025-06-02 17:28:48 -04:00
Hazelnoot
0a59276457 remove unnecessary call to generateVisibilityQuery in bubble-timeline.ts 2025-06-02 17:28:10 -04:00
Hazelnoot
9ebb254ce5 avoid unnecessary nextTick callbacks in bubble-timeline.ts 2025-06-02 17:27:33 -04:00
Hazelnoot
0e16a56086 remove unused DI from bubble-timeline.ts 2025-06-02 17:26:58 -04:00
Hazelnoot
0783999974 add copyright header to bubble-timeline.ts 2025-06-02 17:22:41 -04:00
Hazelnoot
cbefbd2a33 refactor QueryService to use EXISTS instead of IN for most queries 2025-06-02 16:58:54 -04:00
Hazelnoot
825f219368 improve query/parameter logging 2025-06-02 15:25:53 -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
826d6ef2b4 merge: Increase indent in logs (!1064)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1064

Approved-by: Marie <github@yuugi.dev>
Approved-by: dakkar <dakkar@thenautilus.net>
2025-06-01 21:01:37 +00: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
89a32041aa merge: Overhaul trending polls (!1022)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1022

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-06-01 20:52:12 +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
f06ca9f7ee merge: Fix bubble timeline logic (!1088)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1088

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-06-01 19:35:25 +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
bce38c295f sync up logic between notes/bubble-timeline.ts and channels/bubble-timeline.ts 2025-06-01 15:02:57 -04:00
Hazelnoot
b7abc5b3b4 fix withRenotes check in generateMutedUserRenotesQueryForNotes 2025-06-01 14:42:44 -04:00
Hazelnoot
baf785bdc1 fix withRenotes check in bubble-timeline.ts 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
Marie
1022ee32c8 merge: fix DeepLX (!1077)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1077

Approved-by: Hazelnoot <acomputerdog@gmail.com>
Approved-by: Marie <github@yuugi.dev>
2025-06-01 17:25:30 +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
b13781632f fix DeepLX
`??` binds tighter than `? :`, so that expression was parsed as:

```ts
( deeplFreeInstance ?? this.serverSettings.deeplIsPro )
   ? 'https://api.deepl.com/v2/translate'
	 : 'https://api-free.deepl.com/v2/translate'
```

which ended up calling the non-free DeepL instead of the local DeepLX
2025-06-01 14:44:49 +01: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
Hazelnoot
89586bf790 correctly render reblogs and quotes-with-CW for discord previews 2025-06-01 00:26:21 -04:00
Hazelnoot
a5857d2724 allow passing user/note into convertStatus for performance 2025-06-01 00:25:53 -04:00
Hazelnoot
efd378f963 return typed relations from MastodonDataService note fetchers 2025-06-01 00:25:39 -04:00
Hazelnoot
c41a4a6860 merge: Add configuration option for the "query is slow" warning (!1061)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1061

Approved-by: Marie <github@yuugi.dev>
Approved-by: Julia <julia@insertdomain.name>
2025-05-31 16:48:30 +00: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
dakkar
bba8e9fc79 merge: Add web optimization for video files during processing (!1054)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1054

Approved-by: Hazelnoot <acomputerdog@gmail.com>
Approved-by: dakkar <dakkar@thenautilus.net>
2025-05-30 19:24:05 +00:00
PrivateGER
f0207211d9
Import fs module with new syntax 2025-05-30 20:41:51 +02:00