diff options
author | Paul Woolcock <paul@woolcock.us> | 2018-12-12 12:33:49 -0500 |
---|---|---|
committer | Paul Woolcock <paul@woolcock.us> | 2018-12-12 12:33:49 -0500 |
commit | 6f63fef0b2414099c55e36107aab785f689d19b6 (patch) | |
tree | df3b93faa55ff7103920dfd892bebf17dc606f24 | |
parent | 8196e322b554d8fd48ba48029f7929009fc20483 (diff) |
follow returns a `Relationship`, not an `Account`
-rw-r--r-- | src/lib.rs | 2 | ||||
-rw-r--r-- | src/mastodon_client.rs | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -211,7 +211,7 @@ impl<H: HttpSend> MastodonClient<H> for Mastodon<H> { 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<H: HttpSend = HttpSender> { unimplemented!("This method was not implemented"); } /// POST /api/v1/accounts/:id/follow - fn follow(&self, id: &str) -> Result<Account> { + fn follow(&self, id: &str) -> Result<Relationship> { unimplemented!("This method was not implemented"); } /// POST /api/v1/accounts/:id/unfollow |