]> Untitled Git - lemmy.git/blobdiff - lemmy_api/src/post.rs
Merge remote-tracking branch 'yerba/main' into main
[lemmy.git] / lemmy_api / src / post.rs
index d5515b5cd48a2fff6c93c0d9a510758a679c2e68..298076f75bbdcf1dd4dc9d9981b9e7d36d98ef31 100644 (file)
@@ -247,7 +247,7 @@ impl Perform for GetPosts {
     let community_name = data.community_name.to_owned();
     let posts = match blocking(context.pool(), move |conn| {
       PostQueryBuilder::create(conn)
-        .listing_type(type_)
+        .listing_type(&type_)
         .sort(&sort)
         .show_nsfw(show_nsfw)
         .for_community_id(community_id)