diff options
Diffstat (limited to 'src/post_routes.rs')
-rw-r--r-- | src/post_routes.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/post_routes.rs b/src/post_routes.rs index 51b35ec..fda1619 100644 --- a/src/post_routes.rs +++ b/src/post_routes.rs @@ -361,6 +361,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, RenderMode::Preview); + get_renderer(&ctx.path).unwrap()(&new_text, &mut page, RenderMode::Preview, &ctx); Ok(page.into()) } |