From 3c949f0b8113e88f474b7e27b1c0abcfe0664081 Mon Sep 17 00:00:00 2001 From: Hazelnoot Date: Sun, 11 May 2025 03:34:47 -0400 Subject: 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 --- locales/index.d.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'locales') diff --git a/locales/index.d.ts b/locales/index.d.ts index 69c63cc714..8a3799ce58 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -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 */ -- cgit v1.2.3-freya