extern crate diesel_derive_newtype;
// this is used in tests
#[cfg(feature = "full")]
-#[allow(unused_imports)]
#[macro_use]
extern crate diesel_migrations;
+#[cfg(feature = "full")]
#[macro_use]
extern crate async_trait;
All,
ModRemovePost,
ModLockPost,
- ModStickyPost,
+ ModFeaturePost,
ModRemoveComment,
ModRemoveCommunity,
ModBanFromCommunity,
AdminPurgePost,
AdminPurgeComment,
}
+
+#[derive(
+ EnumString, Display, Debug, Serialize, Deserialize, Clone, Copy, Default, PartialEq, Eq,
+)]
+pub enum PostFeatureType {
+ #[default]
+ Local,
+ Community,
+}