1
0

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
This commit is contained in:
Hazelnoot
2025-05-11 03:34:47 -04:00
parent b05b4ec74d
commit 3c949f0b81
6 changed files with 140 additions and 24 deletions
+12
View File
@@ -13069,6 +13069,18 @@ export interface Locale extends ILocale {
* Users popular on {name}
*/
"popularUsersLocal": ParameterizedString<"name">;
/**
* Polls trending on {host}
*/
"pollsOnLocal": ParameterizedString<"host">;
/**
* Polls trending on the global network
*/
"pollsOnRemote": string;
/**
* Polls that have ended recently
*/
"pollsExpired": string;
/**
* Silenced
*/