···844844| `/dashboard` | GET | Main dashboard: unread articles, recommendations sidebar |
845845| `/feeds` | GET | Manage RSS subscriptions (OPML import for onboarding) |
846846| `/feeds/list` | GET | Feed list fragment (htmx partial) |
847847-| `/feeds/discover-url` | GET | Discover feed URL from a website |
848847| `/feeds/opml/upload` | POST | Upload OPML file to bulk-import subscriptions |
849848| `/feeds/opml/download` | GET | Export subscriptions as OPML (offboarding) |
850849| `/feeds/add` | POST | Add a single feed URL |
+1-1
internal/cluster/scoring.go
···224224 JOIN articles a ON a.feed_url = la.feed_url AND a.url = la.article_url
225225 LEFT JOIN feeds f ON f.feed_url = la.feed_url
226226 LEFT JOIN social_likes sl ON sl.feed_url = la.feed_url AND sl.article_url = la.article_url
227227- ORDER BY score DESC
227227+ ORDER BY score DESC, a.published DESC
228228 LIMIT ?
229229 `, userDID, userDID, userDID, userDID, userDID, userDID, w.WLike, w.WSocial, limit)
230230 if err != nil {
···255255 UNION SELECT f.target_did FROM follows f WHERE f.user_did = ?
256256 )
257257 GROUP BY ar.id
258258- ORDER BY like_count DESC, annotation_count DESC
258258+ ORDER BY like_count DESC, annotation_count DESC, ar.published DESC
259259 LIMIT ? OFFSET ?
260260 `, since, userDID, since, userDID, userDID, userDID, userDID, userDID, limit, offset)
261261 if err != nil {
···291291 LEFT JOIN likes ul ON ul.feed_url = l.feed_url AND ul.article_url = l.article_url AND ul.author_did = ?
292292 WHERE l.created_at >= ?
293293 GROUP BY ar.id
294294- ORDER BY like_count DESC, annotation_count DESC
294294+ ORDER BY like_count DESC, annotation_count DESC, ar.published DESC
295295 LIMIT ? OFFSET ?
296296 `, since, userDID, since, limit, offset)
297297 if err != nil {