From b1d667d3cb065edb2010868cb85d1dbf0552e431 Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Thu, 4 Jun 2026 02:18:28 +0200 Subject: [PATCH] fix: user profile returns social counts when viewing own profile --- crates/presentation/src/handlers/api.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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