From 20a9c69adc24f0dc20cdd8b9da234643b4f41164 Mon Sep 17 00:00:00 2001 From: Paul Woolcock Date: Thu, 6 Sep 2018 13:18:29 -0400 Subject: [PATCH] POST /.../unfollow returns a Relationship, not an Account --- src/entities/relationship.rs | 2 ++ src/lib.rs | 2 +- src/mastodon_client.rs | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/entities/relationship.rs b/src/entities/relationship.rs index ee48b72..888f7cd 100644 --- a/src/entities/relationship.rs +++ b/src/entities/relationship.rs @@ -20,4 +20,6 @@ pub struct Relationship { pub muting_notifications: bool, /// Whether the user is currently blocking the accounts's domain pub domain_blocking: bool, + /// Whether the user's reblogs will show up in the home timeline + pub showing_reblogs: bool, } diff --git a/src/lib.rs b/src/lib.rs index 34cb127..79bb530 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -194,7 +194,7 @@ impl MastodonClient for Mastodon { route_id! { (get) get_account: "accounts/{}" => Account, (post) follow: "accounts/{}/follow" => Account, - (post) unfollow: "accounts/{}/unfollow" => Account, + (post) unfollow: "accounts/{}/unfollow" => Relationship, (get) block: "accounts/{}/block" => Account, (get) unblock: "accounts/{}/unblock" => Account, (get) mute: "accounts/{}/mute" => Account, diff --git a/src/mastodon_client.rs b/src/mastodon_client.rs index 1d923a0..4440299 100644 --- a/src/mastodon_client.rs +++ b/src/mastodon_client.rs @@ -116,7 +116,7 @@ pub trait MastodonClient { unimplemented!("This method was not implemented"); } /// POST /api/v1/accounts/:id/unfollow - fn unfollow(&self, id: u64) -> Result { + fn unfollow(&self, id: u64) -> Result { unimplemented!("This method was not implemented"); } /// GET /api/v1/accounts/:id/block