feat: expose search param on user profile API endpoint

This commit is contained in:
2026-06-11 12:37:20 +02:00
parent c020135cd1
commit f10b114e83
2 changed files with 2 additions and 1 deletions

View File

@@ -26,6 +26,7 @@ pub struct UserProfileQueryParams {
pub view: Option<String>,
pub limit: Option<u32>,
pub offset: Option<u32>,
pub search: Option<String>,
}
#[derive(Debug, Clone, Serialize, Deserialize, utoipa::ToSchema)]

View File

@@ -270,7 +270,7 @@ pub async fn get_user_profile(
limit: params.limit,
offset: params.offset,
sort_by: domain::ports::FeedSortBy::Date,
search: None,
search: params.search,
is_own_profile: viewer_id.value() == user_id,
},
)