This plugin creates a “Hot” sorting criteria and builds a custom topic list based on the result of the following formula:
likes / ((hours since creation + 2) ^ gravity)
Things to note:
The default gravity multiplier is 1.5 but you can adjust this in the settings for the plugin.
You can add “hot” to the list of menu items to make it easier to access.
There is also the option to add ?order=hot to a URL to create your own links.
Once enabled, the hot rating is recalculated every 30 minutes so it will take a bit of time to take effect at first. If you want to accelerate this, you can log in to Sidekiq and manually trigger the HotRating job.
This work was graciously sponsored by @commonpawn and @Oskar. Kudos to them for making this happen.
The following topics lend more background to why this exists:
Yes. It does count likes on all posts. It’s beyond me on whether or not that’s a good way to do it. The formula is a copy from other models. @commonpawn and @Oskar, do either of you have a strong leaning here?
The plugin works well, but does it do the “x new posts. Click to refresh” live updating that is done on the core lists? It would be nice if it could (not so much to change the order of the posts, but to notify the users as to which posts have replies…)