feat: point RSS nav link to user feed when on profile page

This commit is contained in:
2026-05-04 21:00:31 +02:00
parent 66ade70273
commit cff0f854fa

View File

@@ -279,7 +279,8 @@ pub mod html {
Path(profile_user_uuid): Path<Uuid>,
Query(params): Query<crate::dtos::ProfileQueryParams>,
) -> impl IntoResponse {
let ctx = build_page_context(&state, user_id).await;
let mut ctx = build_page_context(&state, user_id).await;
ctx.rss_url = format!("/users/{}/feed.rss", profile_user_uuid);
let view = params.view.unwrap_or_else(|| "recent".to_string());
let profile_user = match state.app_ctx.user_repository