This trending hashtag algorithm in #Ditto works by querying the database every hour and publishing a Label event with the top hashtags.

Then to display it, we get the most recent Label, then get a 7-day history for each of those tags.

Check trends with:

nak req -k 1985 -t L=pub.ditto.trends -t l="#t" -a db0e60d10b9555a39050c258d460c5c461f6d18f467aa9f62de1a728b8a891a4 wss://gleasonator.dev/relay

Change #t to #p for trending users, or #r for trending links.

Reply to this note

Please Login to reply.

Discussion

looks nice

i just noticed Ditto for the first time in this post. i like more trending-ness coming to nostr! makes it easy for people to find where the action is happening

what are your primary goals in developing Ditto? what do you seek to explore?

COOL

I'd really like to see a trending notes option too

But are the emoji hashtags working?!? #🌝