]> Untitled Git - lemmy.git/blobdiff - crates/api/src/post_report/create.rs
Replace Option<bool> with bool for PostQuery and CommentQuery (#3819) (#3857)
[lemmy.git] / crates / api / src / post_report / create.rs
index 68eb8f7bd088b0cd4f75ed1c9a18de9877d2180c..d4100a84e77662468952d08a1096e847d13b466a 100644 (file)
@@ -36,7 +36,7 @@ pub async fn create_post_report(
 
   let person_id = local_user_view.person.id;
   let post_id = data.post_id;
-  let post_view = PostView::read(&mut context.pool(), post_id, None, None).await?;
+  let post_view = PostView::read(&mut context.pool(), post_id, None, false).await?;
 
   check_community_ban(person_id, post_view.community.id, &mut context.pool()).await?;