From 6f63fef0b2414099c55e36107aab785f689d19b6 Mon Sep 17 00:00:00 2001 From: Paul Woolcock Date: Wed, 12 Dec 2018 12:33:49 -0500 Subject: [PATCH] follow returns a `Relationship`, not an `Account` --- src/lib.rs | 2 +- src/mastodon_client.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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