feat: add user_id to FeedEntryDto
This commit is contained in:
@@ -54,6 +54,7 @@ pub struct ActivityFeedQueryParams {
|
||||
pub struct FeedEntryDto {
|
||||
pub movie: MovieDto,
|
||||
pub review: ReviewDto,
|
||||
pub user_id: Uuid,
|
||||
pub user_email: String,
|
||||
pub user_display_name: String,
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@ pub fn feed_entry_to_dto(e: &FeedEntry) -> FeedEntryDto {
|
||||
FeedEntryDto {
|
||||
movie: movie_to_dto(e.movie()),
|
||||
review: review_to_dto(e.review()),
|
||||
user_id: e.review().user_id().value(),
|
||||
user_email: e.user_email().to_string(),
|
||||
user_display_name: e.user_display_name().to_string(),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user