]> Untitled Git - lemmy.git/blobdiff - crates/apub/src/collections/community_featured.rs
Make functions work with both connection and pool (#3420)
[lemmy.git] / crates / apub / src / collections / community_featured.rs
index 0743a9fbd26d7c976f4e4fd908cd27d7ec43828e..b3ee54db6707a2a23e4dbaaae64ff03c980c73e1 100644 (file)
@@ -29,7 +29,7 @@ impl Collection for ApubCommunityFeatured {
     data: &Data<Self::DataType>,
   ) -> Result<Self::Kind, Self::Error> {
     let ordered_items = try_join_all(
-      Post::list_featured_for_community(data.pool(), owner.id)
+      Post::list_featured_for_community(&mut data.pool(), owner.id)
         .await?
         .into_iter()
         .map(ApubPost::from)