]> Untitled Git - lemmy.git/blobdiff - crates/db_views_moderator/src/structs.rs
Add support for Featured Posts (#2585)
[lemmy.git] / crates / db_views_moderator / src / structs.rs
index 863de0704f9a7e9e68f08c018ac4fc1157577fd3..85dc006b17a8b26dcc6d4ea6ef38530161e1c512 100644 (file)
@@ -12,12 +12,12 @@ use lemmy_db_schema::{
       ModAddCommunity,
       ModBan,
       ModBanFromCommunity,
+      ModFeaturePost,
       ModHideCommunity,
       ModLockPost,
       ModRemoveComment,
       ModRemoveCommunity,
       ModRemovePost,
-      ModStickyPost,
       ModTransferCommunity,
     },
     person::PersonSafe,
@@ -97,8 +97,8 @@ pub struct ModRemovePostView {
 }
 
 #[derive(Debug, Serialize, Deserialize, Clone)]
-pub struct ModStickyPostView {
-  pub mod_sticky_post: ModStickyPost,
+pub struct ModFeaturePostView {
+  pub mod_feature_post: ModFeaturePost,
   pub moderator: Option<PersonSafe>,
   pub post: Post,
   pub community: CommunitySafe,