mod_add_community,
mod_ban,
mod_ban_from_community,
+ mod_feature_post,
mod_hide_community,
mod_lock_post,
mod_remove_comment,
mod_remove_community,
mod_remove_post,
- mod_sticky_post,
mod_transfer_community,
};
use serde::{Deserialize, Serialize};
pub mod_person_id: PersonId,
pub post_id: PostId,
pub reason: Option<String>,
- pub removed: Option<bool>,
+ pub removed: bool,
pub when_: chrono::NaiveDateTime,
}
pub id: i32,
pub mod_person_id: PersonId,
pub post_id: PostId,
- pub locked: Option<bool>,
+ pub locked: bool,
pub when_: chrono::NaiveDateTime,
}
#[derive(Clone, PartialEq, Eq, Debug, Serialize, Deserialize)]
#[cfg_attr(feature = "full", derive(Queryable, Identifiable))]
-#[cfg_attr(feature = "full", diesel(table_name = mod_sticky_post))]
-pub struct ModStickyPost {
+#[cfg_attr(feature = "full", diesel(table_name = mod_feature_post))]
+pub struct ModFeaturePost {
pub id: i32,
pub mod_person_id: PersonId,
pub post_id: PostId,
- pub stickied: Option<bool>,
+ pub featured: bool,
pub when_: chrono::NaiveDateTime,
+ pub is_featured_community: bool,
}
#[cfg_attr(feature = "full", derive(Insertable, AsChangeset))]
-#[cfg_attr(feature = "full", diesel(table_name = mod_sticky_post))]
-pub struct ModStickyPostForm {
+#[cfg_attr(feature = "full", diesel(table_name = mod_feature_post))]
+pub struct ModFeaturePostForm {
pub mod_person_id: PersonId,
pub post_id: PostId,
- pub stickied: Option<bool>,
+ pub featured: bool,
+ pub is_featured_community: bool,
}
#[derive(Clone, PartialEq, Eq, Debug, Serialize, Deserialize)]
pub mod_person_id: PersonId,
pub comment_id: CommentId,
pub reason: Option<String>,
- pub removed: Option<bool>,
+ pub removed: bool,
pub when_: chrono::NaiveDateTime,
}
pub mod_person_id: PersonId,
pub community_id: CommunityId,
pub reason: Option<String>,
- pub removed: Option<bool>,
+ pub removed: bool,
pub expires: Option<chrono::NaiveDateTime>,
pub when_: chrono::NaiveDateTime,
}
pub other_person_id: PersonId,
pub community_id: CommunityId,
pub reason: Option<String>,
- pub banned: Option<bool>,
+ pub banned: bool,
pub expires: Option<chrono::NaiveDateTime>,
pub when_: chrono::NaiveDateTime,
}
pub mod_person_id: PersonId,
pub other_person_id: PersonId,
pub reason: Option<String>,
- pub banned: Option<bool>,
+ pub banned: bool,
pub expires: Option<chrono::NaiveDateTime>,
pub when_: chrono::NaiveDateTime,
}
pub id: i32,
pub community_id: CommunityId,
pub mod_person_id: PersonId,
- pub reason: Option<String>,
- pub hidden: Option<bool>,
pub when_: chrono::NaiveDateTime,
+ pub reason: Option<String>,
+ pub hidden: bool,
}
#[cfg_attr(feature = "full", derive(Insertable, AsChangeset))]
pub mod_person_id: PersonId,
pub other_person_id: PersonId,
pub community_id: CommunityId,
- pub removed: Option<bool>,
+ pub removed: bool,
pub when_: chrono::NaiveDateTime,
}
pub mod_person_id: PersonId,
pub other_person_id: PersonId,
pub community_id: CommunityId,
- pub removed: Option<bool>,
pub when_: chrono::NaiveDateTime,
}
pub mod_person_id: PersonId,
pub other_person_id: PersonId,
pub community_id: CommunityId,
- pub removed: Option<bool>,
}
#[derive(Clone, PartialEq, Eq, Debug, Serialize, Deserialize)]
pub id: i32,
pub mod_person_id: PersonId,
pub other_person_id: PersonId,
- pub removed: Option<bool>,
+ pub removed: bool,
pub when_: chrono::NaiveDateTime,
}