about summary refs log tree commit diff
path: root/src/models.rs
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2018-04-08T16·02+0200
committerVincent Ambo <tazjin@gmail.com>2018-04-08T16·02+0200
commit6e56f8e729551ff14b7a72ca889b8dd38999fb2d (patch)
tree1533d6379077741191f57149a776297f8168bcdf /src/models.rs
parent7dca9183c581f803f7b456712dfed655722986e8 (diff)
feat(main/templates): Add barebones single-thread view
Diffstat (limited to 'src/models.rs')
-rw-r--r--src/models.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/models.rs b/src/models.rs
index 929bd0507e94..74b386a19cf9 100644
--- a/src/models.rs
+++ b/src/models.rs
@@ -8,7 +8,7 @@ pub struct Thread {
     pub posted: DateTime<Utc>,
 }
 
-#[derive(Queryable)]
+#[derive(Queryable, Serialize)]
 pub struct Post {
     pub id: i32,
     pub thread: i32,