follow returns a `Relationship`, not an `Account`

master
Paul Woolcock 6 years ago
parent 8196e322b5
commit 6f63fef0b2
  1. 2
      src/lib.rs
  2. 2
      src/mastodon_client.rs

@ -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,

@ -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

Loading…
Cancel
Save