]> Untitled Git - lemmy.git/blobdiff - crates/api/src/post/save.rs
Replace Option<bool> with bool for PostQuery and CommentQuery (#3819) (#3857)
[lemmy.git] / crates / api / src / post / save.rs
index aa5d0c10e1c6d9dee59c0c4e523390a845a88954..d9965dc756e0d07f223a25d8dd2161e596e9117e 100644 (file)
@@ -38,7 +38,7 @@ impl Perform for SavePost {
 
     let post_id = data.post_id;
     let person_id = local_user_view.person.id;
-    let post_view = PostView::read(&mut context.pool(), post_id, Some(person_id), None).await?;
+    let post_view = PostView::read(&mut context.pool(), post_id, Some(person_id), false).await?;
 
     // Mark the post as read
     mark_post_as_read(person_id, post_id, &mut context.pool()).await?;