1
0
Commit Graph

1229 Commits

Author SHA1 Message Date
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 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
piuvas ca32c231d0 initial link attributions work. 2025-05-26 22:44:29 -03: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
Hazelnoot 0ae8d85c3f fix TS errors from defaultLike 2025-05-22 16:20:49 -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
Hazelnoot 871a4d3fb1 cache and re-use note translations 2025-05-12 21:35:06 -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 a46887d05f fix calculation of word mute 2025-05-10 21:44:10 -04:00
Hazelnoot 9f5c279478 don't show hidden hashtags on the trending page 2025-05-10 14:42:05 -04:00
おさむのひと e40f3917f3 refactor: ファイルアップロード時のテストを追加 (#15928)
* refactor: ファイルアップロード時のテストを追加

* なぜかsemverが消えてた
2025-05-08 20:03:53 +02:00
Marie c5f5c6fef0 merge: Replace JSDOM with cheerio (!973)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/973

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-05-08 16:09:36 +00:00
Hazelnoot 231ef297b5 replace JSDOM with cheerio 2025-05-08 11:29:57 -04:00
Hazelnoot b2ea03383c implement '/v1/apps/verify_credentials' 2025-05-08 11:23:20 -04:00
Marie 239bfd3b62 add missing state
ref: https://github.com/misskey-dev/misskey/issues/15992
2025-05-08 11:45:36 +02: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 b66a486036 merge: Show all files for Drive Cleaner (!982)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/982

Closes #1033

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Hazelnoot <acomputerdog@gmail.com>
2025-05-07 17:14:41 +00:00
Hazelnoot c302a5c2d7 reorder relay activities to avoid delivery race condition 2025-05-07 12:40:01 -04:00
Marie 6b6dd372cb up 2025-05-07 10:48:09 +02:00
Marie da54742291 add boolean to ignore folderId sorting, show all files on drive cleaner 2025-05-07 09:06:50 +02: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 ff8b22ce60 apply optimized domain block pattern to silence and bubble checks 2025-05-03 21:54:25 -04:00
Hazelnoot f4dafd709c check suspended users/hosts in following feed 2025-05-03 21:43:53 -04:00
dakkar 3f611fe234 honour blocked hosts in global-timeline 2025-05-02 15:57:56 +01:00
dakkar 31d93c8052 nicer SQL checks for blocked hosts
instead of passing a (possibly gigantic) array from JS, we get
PostgreSQL to look at the value in the `meta` table directly

tested the `federation/instances` endpoint, and the `QueryService`
methods; I have not tested the charts
2025-05-02 15:57:56 +01:00
Hazelnoot 3199c309e2 make bubble timeline visibility checks match local timeline 2025-05-01 12:14:45 -04:00
Hazelnoot 8dce293dff add setting to disable proxy account (resolves #766) 2025-05-01 12:07:38 -04:00