X-Git-Url: http://these/git/?a=blobdiff_plain;f=crates%2Fapi%2Fsrc%2Fsite%2Fmod_log.rs;h=ec3ee0f70b5d19d6decc13e50112787785963fe9;hb=9dfd819691676994ac52b000fc4f93dfe72bc2b3;hp=5e1c71a701e2d4969b75aedfb4eb57d8a4aa5b57;hpb=0ecf256ce32392b53b96a24ddd8f2e4e513281da;p=lemmy.git diff --git a/crates/api/src/site/mod_log.rs b/crates/api/src/site/mod_log.rs index 5e1c71a7..ec3ee0f7 100644 --- a/crates/api/src/site/mod_log.rs +++ b/crates/api/src/site/mod_log.rs @@ -19,12 +19,12 @@ use lemmy_db_views_moderator::structs::{ ModAddView, ModBanFromCommunityView, ModBanView, + ModFeaturePostView, ModHideCommunityView, ModLockPostView, ModRemoveCommentView, ModRemoveCommunityView, ModRemovePostView, - ModStickyPostView, ModTransferCommunityView, ModlogListParams, }; @@ -91,8 +91,8 @@ impl Perform for GetModlog { _ => Default::default(), }; - let stickied_posts = match type_ { - All | ModStickyPost => ModStickyPostView::list(context.pool(), params).await?, + let featured_posts = match type_ { + All | ModFeaturePost => ModFeaturePostView::list(context.pool(), params).await?, _ => Default::default(), }; @@ -181,7 +181,7 @@ impl Perform for GetModlog { Ok(GetModlogResponse { removed_posts, locked_posts, - stickied_posts, + featured_posts, removed_comments, removed_communities, banned_from_community,