X-Git-Url: http://these/git/?a=blobdiff_plain;f=crates%2Fapi_common%2Fsrc%2Fpost.rs;h=82a1d66499f037d82d998a8957a6363491a10219;hb=9dfd819691676994ac52b000fc4f93dfe72bc2b3;hp=4f486e0598da8ead2abc90eddd4122a72707a816;hpb=0ecf256ce32392b53b96a24ddd8f2e4e513281da;p=lemmy.git diff --git a/crates/api_common/src/post.rs b/crates/api_common/src/post.rs index 4f486e05..82a1d664 100644 --- a/crates/api_common/src/post.rs +++ b/crates/api_common/src/post.rs @@ -2,6 +2,7 @@ use crate::sensitive::Sensitive; use lemmy_db_schema::{ newtypes::{CommentId, CommunityId, DbUrl, LanguageId, PostId, PostReportId}, ListingType, + PostFeatureType, SortType, }; use lemmy_db_views::structs::{PostReportView, PostView}; @@ -106,9 +107,10 @@ pub struct LockPost { } #[derive(Debug, Serialize, Deserialize, Clone, Default)] -pub struct StickyPost { +pub struct FeaturePost { pub post_id: PostId, - pub stickied: bool, + pub featured: bool, + pub feature_type: PostFeatureType, pub auth: Sensitive, }