Screenshot of work-in-progress code: function fetchTrends(masto) { if (supports('@pixelfed/trending')) { return masto.pixelfed.v2.discover.posts.trending.list({ range: 'daily', }); } return masto.v1.trends.statuses.list({ limit: LIMIT, }); }
https://files.mastodon.social/media_attachments/files/112/264/193/177/675/187/original/02ce335d5fb7cbb3.png