summaryrefslogtreecommitdiffstats
path: root/server/src/db/post_view.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/db/post_view.rs')
-rw-r--r--server/src/db/post_view.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/server/src/db/post_view.rs b/server/src/db/post_view.rs
index c9d8cff7..a3d327dc 100644
--- a/server/src/db/post_view.rs
+++ b/server/src/db/post_view.rs
@@ -20,6 +20,8 @@ table! {
updated -> Nullable<Timestamp>,
deleted -> Bool,
nsfw -> Bool,
+ banned -> Bool,
+ banned_from_community -> Bool,
creator_name -> Varchar,
community_name -> Varchar,
community_removed -> Bool,
@@ -54,6 +56,8 @@ pub struct PostView {
pub updated: Option<chrono::NaiveDateTime>,
pub deleted: bool,
pub nsfw: bool,
+ pub banned: bool,
+ pub banned_from_community: bool,
pub creator_name: String,
pub community_name: String,
pub community_removed: bool,
@@ -279,6 +283,8 @@ mod tests {
body: None,
creator_id: inserted_user.id,
creator_name: user_name.to_owned(),
+ banned: false,
+ banned_from_community: false,
community_id: inserted_community.id,
removed: false,
deleted: false,
@@ -312,6 +318,8 @@ mod tests {
locked: false,
creator_id: inserted_user.id,
creator_name: user_name.to_owned(),
+ banned: false,
+ banned_from_community: false,
community_id: inserted_community.id,
community_name: community_name.to_owned(),
community_removed: false,