]> Untitled Git - lemmy.git/blobdiff - crates/api/src/comment.rs
Merge branch 'main' into move_matrix_and_admin_to_person
[lemmy.git] / crates / api / src / comment.rs
index 61f9a7040e44744bbbb51ac004e89305c68304c1..78bb484f9d0ece58590ff37a62c80d48d31421ee 100644 (file)
@@ -684,12 +684,14 @@ impl Perform for GetComments {
 
     let community_id = data.community_id;
     let community_name = data.community_name.to_owned();
+    let saved_only = data.saved_only;
     let page = data.page;
     let limit = data.limit;
     let comments = blocking(context.pool(), move |conn| {
       CommentQueryBuilder::create(conn)
         .listing_type(type_)
         .sort(&sort)
+        .saved_only(saved_only)
         .community_id(community_id)
         .community_name(community_name)
         .my_person_id(person_id)