refactor(adapters): update FeedEntry construction to use EngagementStats + ViewerContext
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user