mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-03 21:54:23 +01:00
Trends: support author threshold (default: 3)
This commit is contained in:
@@ -13,7 +13,11 @@ const trendingTagsController: AppController = (c) => {
|
||||
const now = new Date();
|
||||
const yesterday = new Date(now.getTime() - Time.days(1));
|
||||
|
||||
const tags = trends.getTrendingTags(yesterday, now, limit);
|
||||
const tags = trends.getTrendingTags({
|
||||
since: yesterday,
|
||||
until: now,
|
||||
limit,
|
||||
});
|
||||
|
||||
return c.json(tags.map(({ name, accounts, uses }) => ({
|
||||
name,
|
||||
|
||||
Reference in New Issue
Block a user