diff options
Diffstat (limited to 'server/src/apub/mod.rs')
-rw-r--r-- | server/src/apub/mod.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/src/apub/mod.rs b/server/src/apub/mod.rs index 373fa8da..6abe7ee7 100644 --- a/server/src/apub/mod.rs +++ b/server/src/apub/mod.rs @@ -42,6 +42,7 @@ use url::Url; use crate::api::comment::CommentResponse; use crate::api::post::PostResponse; use crate::api::site::SearchResponse; +use crate::db::activity; use crate::db::comment::{Comment, CommentForm}; use crate::db::comment_view::CommentView; use crate::db::community::{Community, CommunityFollower, CommunityFollowerForm, CommunityForm}; @@ -178,12 +179,12 @@ pub trait ActorType { // These two have default impls, since currently a community can't follow anything, // and a user can't be followed (yet) #[allow(unused_variables)] - fn send_follow(&self, follow_actor_id: &str) -> Result<(), Error> { + fn send_follow(&self, follow_actor_id: &str, conn: &PgConnection) -> Result<(), Error> { Err(format_err!("Follow not implemented.")) } #[allow(unused_variables)] - fn send_accept_follow(&self, follow: &Follow) -> Result<(), Error> { + fn send_accept_follow(&self, follow: &Follow, conn: &PgConnection) -> Result<(), Error> { Err(format_err!("Accept not implemented.")) } |