diff --git a/src/lib.rs b/src/lib.rs index b76a59c..4f597f5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -211,7 +211,7 @@ impl MastodonClient for Mastodon { route_id! { (get) get_account: "accounts/{}" => Account, - (post) follow: "accounts/{}/follow" => Account, + (post) follow: "accounts/{}/follow" => Relationship, (post) unfollow: "accounts/{}/unfollow" => Relationship, (get) block: "accounts/{}/block" => Account, (get) unblock: "accounts/{}/unblock" => Account, diff --git a/src/mastodon_client.rs b/src/mastodon_client.rs index 83a2948..559f079 100644 --- a/src/mastodon_client.rs +++ b/src/mastodon_client.rs @@ -122,7 +122,7 @@ pub trait MastodonClient { unimplemented!("This method was not implemented"); } /// POST /api/v1/accounts/:id/follow - fn follow(&self, id: &str) -> Result { + fn follow(&self, id: &str) -> Result { unimplemented!("This method was not implemented"); } /// POST /api/v1/accounts/:id/unfollow