use lemmy_api_common::{lemmy_db_schema::newtypes::{CommentId, PostId}, comment::{RemoveComment, CommentResponse}, sensitive::Sensitive, post::{PostResponse, RemovePost}}; pub fn remove_post( post_id: i32, reason: String, auth: Sensitive, ) -> Result { let params = RemovePost { post_id: PostId(post_id), removed: true, reason: Some(reason), auth, }; super::post("/post/remove", ¶ms) } pub fn remove_comment( comment_id: i32, reason: String, auth: Sensitive, ) -> Result { let params = RemoveComment { comment_id: CommentId(comment_id), removed: true, reason: Some(reason), auth, }; super::post("/comment/remove", ¶ms) }