Barazo AppView backend barazo.forum

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.


+12 -5
2 changed files