Skip to main content


Someone add trending hashtags to #rebased #hackiverse
RT: https://mastodon.tech/objects/eb90a25e-b736-4701-8ad0-4edbc5dee00e
If someone wrote sufficient tests for it I'd implement them cc @alex
How would we track trends? Mastodon uses Redis and stores a key for each hashtag for each date, then sorts them. It is possible to do it only with Postgres?
Also, unless you give admins the ability to moderate hashtags, they'll be entirely porn based due to the high number of porn bots that spam hashtags.
How does mastodon do it?
Hashtags have to be approved manually by an admin. There's an admin screen that shows trendable tags that haven't been approved or rejected.
The algorithm is pretty basic. 3 separate people need to use a tag within a 24 hour period for it to be considered trendable.