aboutsummaryrefslogtreecommitdiff
path: root/src/post_routes.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/post_routes.rs')
-rw-r--r--src/post_routes.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/post_routes.rs b/src/post_routes.rs
index 392a024..7588abc 100644
--- a/src/post_routes.rs
+++ b/src/post_routes.rs
@@ -20,6 +20,7 @@ use crate::get_renderer;
use crate::ActionParam;
use crate::Args;
use crate::Context;
+use crate::RenderMode;
use crate::Response;
use crate::{controller::Controller, Error};
@@ -363,6 +364,6 @@ async fn preview_edit<C: Controller>(
let form: EditForm = body.into_form().await?;
let new_text = form.text.replace("\r\n", "\n");
let mut page = edit_text_form(&form, None, controller, &ctx, parts);
- get_renderer(&ctx.path).unwrap()(&new_text, &mut page);
+ get_renderer(&ctx.path).unwrap()(&new_text, &mut page, RenderMode::Preview);
Ok(page.into())
}