Noreposts Feed

Fix feed ordering to use post creation time instead of indexing time

- Changed ORDER BY from indexed_at to created_at for chronological order
- Updated cursor to use created_at for pagination consistency
- Posts now appear in reverse chronological order (newest first)
- created_at is the original post timestamp from Bluesky

+4 -4
+2 -2
src/database.rs
··· 90 90 FROM posts p 91 91 INNER JOIN follows f ON f.target_did = p.author_did 92 92 WHERE f.follower_did = ? 93 - AND p.indexed_at < ? 94 - ORDER BY p.indexed_at DESC 93 + AND p.created_at < ? 94 + ORDER BY p.created_at DESC 95 95 LIMIT ? 96 96 "# 97 97 )
+2 -2
src/feed_algorithm.rs
··· 49 49 }) 50 50 .collect(); 51 51 52 - // Generate cursor for pagination 52 + // Generate cursor for pagination (use created_at for chronological order) 53 53 let cursor = posts 54 54 .last() 55 - .map(|post| post.indexed_at.to_rfc3339()); 55 + .map(|post| post.created_at.to_rfc3339()); 56 56 57 57 Ok(FeedSkeletonResponse { 58 58 cursor,