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.
This commit is contained in:
Vincent Ambo 2018-05-01 20:49:19 +02:00 committed by Vincent Ambo
parent 9d5830e9a7
commit 9b1f6d3628
4 changed files with 69 additions and 32 deletions

View file

@ -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>);