Commit graph

381 commits

Author SHA1 Message Date
Hazelnoot
65983d0030 fix performance regression in mentions endpoint 2025-06-05 00:35:38 -04:00
Hazelnoot
232894cd86 fix performance regression in home timeline 2025-06-05 00:35:22 -04:00
Hazelnoot
6fe335f843 fix performance drop in notes/mentions endpoint 2025-06-04 10:40:07 -04:00
Hazelnoot
8f466e8ac5 copy changes to notes/following.ts 2025-06-03 15:56:20 -04:00
Hazelnoot
285a4748c3 copy changes to user-list-timeline.ts 2025-06-03 15:47:55 -04:00
Hazelnoot
6896bcea9d copy changes to mentions.ts 2025-06-03 15:44:50 -04:00
Hazelnoot
66572d16a8 copy changes to timeline.ts 2025-06-03 15:32:27 -04:00
Hazelnoot
ef3b5541f8 copy changes to hybrid-timeline.ts 2025-06-03 15:29:42 -04:00
Hazelnoot
c3ba139655 copy changes to local-timeline.ts 2025-06-03 15:21:42 -04:00
Hazelnoot
4b58752a16 copy changes to global-timeline.ts 2025-06-03 15:17:55 -04:00
Hazelnoot
38d4ac91ef fix bubble timeline query performance 2025-06-03 15:15:04 -04:00
Hazelnoot
a392865203 replace renotes check with generateExcludedRenotesQueryForNotes in bubble-timeline.ts 2025-06-03 15:14:37 -04:00
Hazelnoot
2258e439af replace silenced users check with generateSilencedUserQueryForNotes in bubble-timeline.ts 2025-06-03 15:14:22 -04:00
Hazelnoot
7ab5ce1537 replace generateBlockedHostQueryForNote allowSilenced parameter with generateSilencedUserQueryForNotes 2025-06-02 23:48:12 -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
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
bce38c295f sync up logic between notes/bubble-timeline.ts and channels/bubble-timeline.ts 2025-06-01 15:02:57 -04:00
Hazelnoot
baf785bdc1 fix withRenotes check in bubble-timeline.ts 2025-06-01 14:42:44 -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
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
Hazelnoot
9c4e3934d1 exclude local notes from bubble timeline 2025-05-30 14:39:37 -04:00
Hazelnoot
50a64f97df allow unauthenticated (logged-out) users to translate notes 2025-05-30 12:35:31 -04:00
Hazelnoot
139f458c0b fix following feed performance and bugs 2025-05-28 21:31:40 -04:00
Hazelnoot
7064150144 use instance block columns instead of checking meta columns 2025-05-28 21:31:40 -04:00
Hazelnoot
31e00a0906 fix policy check for unspecified "local" property in polls/recommendation endpoint 2025-05-23 10:22:17 -04:00
Hazelnoot
63950fea31 catch polls that are expiring exactly in the current instant 2025-05-23 10:22:17 -04:00
Hazelnoot
f01dc57ec9 only show polls from explorable users 2025-05-23 10:22:17 -04:00
Hazelnoot
3c949f0b81 overhaul trending polls
* Split into local, global, and completed sections
* Don't require credential, but check for local/global timeline perms
* Fix rate limit
* Return polls where the current user has already voted
* Return non-public polls if the user has permission to view them
* Apply user/instance blocks
* Fetch polls + notes + users in a single step to speed up pack
2025-05-23 10:22:13 -04:00
Hazelnoot
dee2e19b63 don't trend notes from non-explorable or non-trendable users 2025-05-14 23:24:51 -04: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
e7ee2cc398 add configurable timeout for note translations 2025-05-12 21:48:21 -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
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
cfad5999b2
Fix polls not rendering properly in Schedule List 2025-05-08 01:26:56 +02:00
Hazelnoot
c302a5c2d7 reorder relay activities to avoid delivery race condition 2025-05-07 12:40:01 -04:00
Hazelnoot
76597d1a4c check role assignments in featured timeline 2025-05-04 08:55:57 -04:00
Hazelnoot
f6eb3148f3 use bucket rate limit for featured timeline 2025-05-04 08:55:26 -04:00
Hazelnoot
f4dafd709c check suspended users/hosts in following feed 2025-05-03 21:43:53 -04:00