From 3e918f66cf6b6b0361381d1851a3a36fbc2ad4ad Mon Sep 17 00:00:00 2001 From: glyph Date: Tue, 22 Mar 2022 16:11:13 +0200 Subject: [PATCH] fix error flash value --- peach-web/src/routes/scuttlebutt/profile.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/peach-web/src/routes/scuttlebutt/profile.rs b/peach-web/src/routes/scuttlebutt/profile.rs index 9ff1643..2fd11e9 100644 --- a/peach-web/src/routes/scuttlebutt/profile.rs +++ b/peach-web/src/routes/scuttlebutt/profile.rs @@ -31,7 +31,7 @@ fn profile_info_box_template(profile: &Profile) -> Markup { } } // render the profile bio: picture, id, name, image & description - (profile_bio_template(&profile)) + (profile_bio_template(profile)) } } } @@ -162,12 +162,7 @@ pub fn build_template(request: &Request, ssb_id: Option) -> PreEscaped { // render the sbot error template with the error message - let error_template = templates::error::build_template(e.to_string()); - // wrap the nav bars around the error template content - let body = templates::nav::build_template(error_template, "Profile", Some("/")); - - // render the base template with the provided body - templates::base::build_template(body) + templates::error::build_template(e.to_string()) } } }