]> Untitled Git - lemmy.git/blobdiff - crates/apub/src/protocol/collections/group_followers.rs
Make functions work with both connection and pool (#3420)
[lemmy.git] / crates / apub / src / protocol / collections / group_followers.rs
index 964bbdf82d141a0ff67de3249d44e8fac04de8df..a3814501c82e7e7b012b215443b6e98c79a7abc2 100644 (file)
@@ -22,7 +22,7 @@ impl GroupFollowers {
   ) -> Result<GroupFollowers, LemmyError> {
     let community_id = community.id;
     let community_followers =
-      CommunityFollowerView::count_community_followers(context.pool(), community_id).await?;
+      CommunityFollowerView::count_community_followers(&mut context.pool(), community_id).await?;
 
     Ok(GroupFollowers {
       id: generate_followers_url(&community.actor_id)?.into(),