feat: point RSS nav link to user feed when on profile page
This commit is contained in:
@@ -279,7 +279,8 @@ pub mod html {
|
|||||||
Path(profile_user_uuid): Path<Uuid>,
|
Path(profile_user_uuid): Path<Uuid>,
|
||||||
Query(params): Query<crate::dtos::ProfileQueryParams>,
|
Query(params): Query<crate::dtos::ProfileQueryParams>,
|
||||||
) -> impl IntoResponse {
|
) -> 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 view = params.view.unwrap_or_else(|| "recent".to_string());
|
||||||
|
|
||||||
let profile_user = match state.app_ctx.user_repository
|
let profile_user = match state.app_ctx.user_repository
|
||||||
|
|||||||
Reference in New Issue
Block a user