]> Untitled Git - lemmy.git/blobdiff - crates/apub/src/activities/following/accept.rs
Make functions work with both connection and pool (#3420)
[lemmy.git] / crates / apub / src / activities / following / accept.rs
index 7b9ab6802311e3749af46bd14f4840b24cca1013..af7d637255356941afbfa93469546da9a1909a7c 100644 (file)
@@ -66,7 +66,7 @@ impl ActivityHandler for AcceptFollow {
     // This will throw an error if no follow was requested
     let community_id = community.id;
     let person_id = person.id;
-    CommunityFollower::follow_accepted(context.pool(), community_id, person_id).await?;
+    CommunityFollower::follow_accepted(&mut context.pool(), community_id, person_id).await?;
 
     Ok(())
   }