refactor(adapters): update FeedEntry construction to use EngagementStats + ViewerContext

This commit is contained in:
2026-05-15 15:21:48 +02:00
parent 686dc1c91a
commit 48b57abf92
3 changed files with 31 additions and 33 deletions

View File

@@ -97,11 +97,12 @@ fn row_to_entry(r: FeedRow) -> Result<FeedEntry, DomainError> {
Ok(FeedEntry {
thought,
author,
like_count: r.like_count,
boost_count: r.boost_count,
reply_count: r.reply_count,
liked_by_viewer: false,
boosted_by_viewer: false,
stats: domain::models::feed::EngagementStats {
like_count: r.like_count,
boost_count: r.boost_count,
reply_count: r.reply_count,
},
viewer: None, // Task 3 will fix this to use real viewer data
})
}