about summary refs log tree commit diff
path: root/src/db.rs
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2018-04-15T19·13+0200
committerVincent Ambo <tazjin@gmail.com>2018-04-15T19·13+0200
commitec712cc4c0e12329f51d10d9bd626d1859a011b8 (patch)
treee5b51d31c4bfb66eaca5c29e9d796b1a7599dee5 /src/db.rs
parent4c0e6552e80e70de55fa0ab4310dfec0078b18b9 (diff)
refactor(templates/render): Add generic post editing template
Adds a generic template that can be used for submitting, responding to
and editing posts.
Diffstat (limited to 'src/db.rs')
-rw-r--r--src/db.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db.rs b/src/db.rs
index 22438d2b8766..ad1c148a7072 100644
--- a/src/db.rs
+++ b/src/db.rs
@@ -80,7 +80,7 @@ impl Handler<GetThread> for DbExecutor {
 /// Message used to create a new thread
 pub struct CreateThread {
     pub new_thread: NewThread,
-    pub body: String,
+    pub post: String,
 }
 
 impl Message for CreateThread {
@@ -105,7 +105,7 @@ impl Handler<CreateThread> for DbExecutor {
             // ... then create the first post in the thread.
             let new_post = NewPost {
                 thread_id: thread.id,
-                body: msg.body,
+                body: msg.post,
                 author_name: msg.new_thread.author_name.clone(),
                 author_email: msg.new_thread.author_email.clone(),
             };