1
0
Commit Graph

2093 Commits

Author SHA1 Message Date
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 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 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 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
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 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 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 979c7628b1 disable status badge strip in admin-user and instance-info 2025-05-29 22:20:21 -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 3da3ce9a40 pass limit from ap/get to resolveCollectionItems 2025-05-26 12:50:01 -04:00
Hazelnoot e689c04764 add options expandCollectionItems and allowAnonymous to ap/get endpoint 2025-05-26 11:17:20 -04:00
Hazelnoot 4ed1ea8f89 increase chart rate limits to max=200 and rate=5/s 2025-05-25 18:49:42 -04:00
Marie e59a3ad693 merge: Synchronize database entities and code models (!1040)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1040

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-05-23 23:33:08 +00: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
Marie b05b4ec74d merge: Cleanup admin user UI (!1012)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1012

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-05-23 11:21:29 +00:00
Hazelnoot 0ae8d85c3f fix TS errors from defaultLike 2025-05-22 16:20:49 -04:00
Hazelnoot 28551c8103 use config.url instead of "https://${config.host}" 2025-05-21 08:27:23 -04:00
Hazelnoot 3a3f8770d9 factor our cache logic into a separate method 2025-05-19 18:18:55 -04:00
Hazelnoot 3936807184 remove preview ActivityPub flag if we encounter a permanent (non-retryable) error while fetching the note 2025-05-19 18:11:25 -04:00
Hazelnoot 34a6816636 fix error schema for FileServerService rate limit 2025-05-19 17:59:49 -04:00
Hazelnoot bede498798 add rate limit for URL preview 2025-05-19 17:58:35 -04:00
Hazelnoot f8c53466ef make sure that the "fetch linked note" button actually remembers that the note is fetched 2025-05-19 10:57:42 -04:00
Hazelnoot 228e522081 add "followStats" property to admin/show-user response 2025-05-16 17:39:43 -04:00
Hazelnoot 10622ceec7 replace andWhere with where 2025-05-14 23:26:22 -04:00
Hazelnoot b7b30bde5d use /users endpoint for explore exclusively (restore original behavior) 2025-05-14 23:25:40 -04:00
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 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 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