feat(hot): use sort=watching for 24h view-based ranking#282
Open
rabble wants to merge 1 commit into
Open
Conversation
Hot tab today maps SortMode='hot' → FunnelcakeSortMode='trending', which uses the 7-day age decay formula that buries classic Vines (score → 0 after a few weeks regardless of current attention). Funnelcake just shipped sort=watching (PR #305 + #307): 24-hour CDN view count, no age decay. Surfaces classics by what people are looking at right now — including 10-year-old Vines. Verified live: https://api.divine.video/api/v2/videos?sort=watching returns classic Vines (e.g. Naruto vine from 2016 with 33M loops) above recent uploads. Two-line change: add 'watching' to FunnelcakeSortMode union, flip the 'hot' → 'watching' map in useVideoProvider. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
🚀 Preview Deployment
|
Deploying divine-web with
|
| Latest commit: |
ab9b5a6
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://89bd5e2e.divine-web.pages.dev |
| Branch Preview URL: | https://feat-hot-tab-sort-watching.divine-web.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two-line change: Hot tab now requests `sort=watching` from Funnelcake instead of `sort=trending`.
Why
Today's mapping (`SortMode='hot'` → funnelcake `'trending'`) hits the 7-day age-decay formula that buries classic Vines at score ≈ 0 after a few weeks. Classics are a primary draw on Divine — the Hot tab should rank by current attention, not upload date.
Funnelcake `sort=watching` (PR divine-funnelcake#305 + #307) ranks by 24-hour CDN view count with NO age decay.
Verification
```
curl -s 'https://api.divine.video/api/v2/videos?sort=watching&limit=5' | jq '.data[].created_at'
```
Top result is a 2016 Naruto vine with 33M loops — exactly the surface we want.
Diff
Test plan
Launching in 2 days.
🤖 Generated with Claude Code