From 85014d27897ec931aca52e5195c8ac0a320f9a52 Mon Sep 17 00:00:00 2001 From: Magnus Hoff Date: Sun, 30 Sep 2018 22:29:37 +0200 Subject: [PATCH] Include theme in response when creating new article. Bug caused by duplication of code. --- src/resources/new_article_resource.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/resources/new_article_resource.rs b/src/resources/new_article_resource.rs index c5b9935..1e96923 100644 --- a/src/resources/new_article_resource.rs +++ b/src/resources/new_article_resource.rs @@ -134,6 +134,7 @@ impl Resource for NewArticleResource { revision: i32, title: &'a str, body: &'a str, + theme: Theme, rendered: &'a str, last_updated: &'a str, } @@ -161,6 +162,7 @@ impl Resource for NewArticleResource { revision: updated.revision, title: &updated.title, body: &updated.body, + theme: updated.theme, rendered: &Template { title: &updated.title, rendered: render_markdown(&updated.body),