summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Woolcock <paul@woolcock.us>2018-09-06 13:18:29 -0400
committerPaul Woolcock <paul@woolcock.us>2018-09-06 14:36:40 -0400
commit20a9c69adc24f0dc20cdd8b9da234643b4f41164 (patch)
treea67a14255ec09bc0be3f8619a8a36d0a2f34a8f9 /src
parent788177f5e8edc7f4e65cc733cba946abf26bbb2d (diff)
POST /.../unfollow returns a Relationship, not an Account
Diffstat (limited to 'src')
-rw-r--r--src/entities/relationship.rs2
-rw-r--r--src/lib.rs2
-rw-r--r--src/mastodon_client.rs2
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<H: HttpSend> MastodonClient<H> for Mastodon<H> {
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<H: HttpSend = HttpSender> {
unimplemented!("This method was not implemented");
}
/// POST /api/v1/accounts/:id/unfollow
- fn unfollow(&self, id: u64) -> Result<Account> {
+ fn unfollow(&self, id: u64) -> Result<Relationship> {
unimplemented!("This method was not implemented");
}
/// GET /api/v1/accounts/:id/block