]> Untitled Git - lemmy.git/blobdiff - crates/api/src/post.rs
Merge branch 'main' into move_matrix_and_admin_to_person
[lemmy.git] / crates / api / src / post.rs
index 48153a86b9d8a5455d2be9c95abd2911c9d38613..e76cfa18f644513e0c2e4ee248f31f22374fcf89 100644 (file)
@@ -253,6 +253,8 @@ impl Perform for GetPosts {
     let limit = data.limit;
     let community_id = data.community_id;
     let community_name = data.community_name.to_owned();
+    let saved_only = data.saved_only;
+
     let posts = match blocking(context.pool(), move |conn| {
       PostQueryBuilder::create(conn)
         .listing_type(&type_)
@@ -260,6 +262,7 @@ impl Perform for GetPosts {
         .show_nsfw(show_nsfw)
         .community_id(community_id)
         .community_name(community_name)
+        .saved_only(saved_only)
         .my_person_id(person_id)
         .page(page)
         .limit(limit)