diff --git a/crates/presentation/src/handlers/api.rs b/crates/presentation/src/handlers/api.rs index 0413238..ed467fc 100644 --- a/crates/presentation/src/handlers/api.rs +++ b/crates/presentation/src/handlers/api.rs @@ -990,6 +990,7 @@ pub async fn list_users(State(state): State) -> Result, + AuthenticatedUser(viewer_id): AuthenticatedUser, Path(user_id): Path, Query(params): Query, ) -> impl IntoResponse { @@ -1022,7 +1023,7 @@ pub async fn get_user_profile( offset: params.offset, sort_by: domain::ports::FeedSortBy::Date, search: None, - is_own_profile: false, + is_own_profile: viewer_id.value() == user_id, }, ) .await