Something went wrong. Try again.
Barazo AppView backend barazo.forum
Something went wrong. Try again.
feat(topics): add popular sort with time-decay scoring (#116) master
Add `sort` query parameter to GET /api/topics (values: 'latest' | 'popular'). Popular sort uses a time-decay formula: score = (replyCount + reactionCount * 0.3) / (age_hours + 2)^1.2 This naturally surfaces actively discussed recent topics while letting older threads fade. Cursor pagination is disabled for popular sort since computed scores aren't monotonic.
Author Guido X Jansen Committer GitHub Date (Mar 2, 2026, 11:12 PM UTC) Commit c73d459e c73d459eafc7c6d8984af98eaf28823a1a08c85a Parent d016d6a7 d016d6a7895684949bc74da2fbb4b172528179d8