about summary refs log tree commit diff
path: root/src/render.rs
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2018-05-01T18·49+0200
committerVincent Ambo <github@tazj.in>2018-05-01T22·33+0200
commit9b1f6d3628884059753169f4dd6e018bab74c40f (patch)
tree5d608b4fa35cc935a7372985d211e2f9835ff2b5 /src/render.rs
parent9d5830e9a724d04b2f6fd410c7ae2b56ceea576f (diff)
refactor(db/render/schema): Use SimplePost type for thread views
This uses the simplified view for querying posts instead of the post
table directly to display posts.
Diffstat (limited to 'src/render.rs')
-rw-r--r--src/render.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render.rs b/src/render.rs
index 9a81d2c4cc..bc1197bc15 100644
--- a/src/render.rs
+++ b/src/render.rs
@@ -89,7 +89,7 @@ impl Handler<IndexPage> for Renderer {
 pub struct ThreadPage {
     pub current_user: Option<String>,
     pub thread: Thread,
-    pub posts: Vec<Post>,
+    pub posts: Vec<SimplePost>,
 }
 message!(ThreadPage, Result<String>);