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:
parent
9d5830e9a7
commit
9b1f6d3628
4 changed files with 69 additions and 32 deletions
|
|
@ -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>);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue