diff options
author | Vincent Ambo <mail@tazj.in> | 2018-05-25T16·44+0200 |
---|---|---|
committer | Vincent Ambo <github@tazj.in> | 2018-05-27T13·00+0200 |
commit | 871093a973d265026581c53b760f9f021b192f54 (patch) | |
tree | 4e43455a5831eebf8cb031f5c5249db9bb8108ca /src/models.rs | |
parent | 468af132e89a8cb80392b7d6e12f1e53b849c0c1 (diff) |
feat(db): Update views with thread-closed field
Diffstat (limited to 'src/models.rs')
-rw-r--r-- | src/models.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/models.rs b/src/models.rs index 006596fd8331..eab90b30f601 100644 --- a/src/models.rs +++ b/src/models.rs @@ -63,6 +63,7 @@ pub struct SimplePost { pub body: String, pub posted: DateTime<Utc>, pub user_id: i32, + pub closed: bool, pub author_name: String, pub author_email: String, } @@ -77,6 +78,7 @@ pub struct ThreadIndex { pub thread_author: String, pub created: DateTime<Utc>, pub sticky: bool, + pub closed: bool, pub post_id: i32, pub post_author: String, pub posted: DateTime<Utc>, |