X-Git-Url: http://these/git/?a=blobdiff_plain;f=crates%2Fapi%2Fsrc%2Fpost_report%2Fcreate.rs;h=d4100a84e77662468952d08a1096e847d13b466a;hb=c8063f3267cf2b3622f1fdc69128c6b55feefbbc;hp=68eb8f7bd088b0cd4f75ed1c9a18de9877d2180c;hpb=27be1efb74d6761046999980561a343d06235674;p=lemmy.git diff --git a/crates/api/src/post_report/create.rs b/crates/api/src/post_report/create.rs index 68eb8f7b..d4100a84 100644 --- a/crates/api/src/post_report/create.rs +++ b/crates/api/src/post_report/create.rs @@ -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?;