diff options
author | Dessalines <tyhou13@gmx.com> | 2020-04-28 10:10:05 -0400 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-04-28 10:10:05 -0400 |
commit | b60c7bbae7e605d43c93cb7b153d96982d97765b (patch) | |
tree | 696734606d9a16b9698003839762465c4ca98fde /server/src/apub/mod.rs | |
parent | 70060c27b2f40ef2de0c0ea37d3d69e202ab8c02 (diff) | |
parent | 07a9d84ed08d85847ebe15fa68e20a2763508046 (diff) |
Merge branch 'federation' into add_activity_table
Diffstat (limited to 'server/src/apub/mod.rs')
-rw-r--r-- | server/src/apub/mod.rs | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/server/src/apub/mod.rs b/server/src/apub/mod.rs index 77d42b82..6abe7ee7 100644 --- a/server/src/apub/mod.rs +++ b/server/src/apub/mod.rs @@ -16,11 +16,7 @@ use activitystreams::{ context, endpoint::EndpointProperties, ext::{Ext, Extensible, Extension}, - object::{ - kind::{NoteType, PageType}, - properties::ObjectProperties, - Note, Page, - }, + object::{properties::ObjectProperties, Note, Page}, public, BaseBox, }; use actix_web::body::Body; @@ -184,12 +180,12 @@ pub trait ActorType { // and a user can't be followed (yet) #[allow(unused_variables)] fn send_follow(&self, follow_actor_id: &str, conn: &PgConnection) -> Result<(), Error> { - Ok(()) + Err(format_err!("Follow not implemented.")) } #[allow(unused_variables)] fn send_accept_follow(&self, follow: &Follow, conn: &PgConnection) -> Result<(), Error> { - Ok(()) + Err(format_err!("Accept not implemented.")) } // TODO default because there is no user following yet. |