summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Woolcock <paul@woolcock.us>2018-12-12 12:33:49 -0500
committerPaul Woolcock <paul@woolcock.us>2018-12-12 12:33:49 -0500
commit6f63fef0b2414099c55e36107aab785f689d19b6 (patch)
treedf3b93faa55ff7103920dfd892bebf17dc606f24
parent8196e322b554d8fd48ba48029f7929009fc20483 (diff)
follow returns a `Relationship`, not an `Account`
-rw-r--r--src/lib.rs2
-rw-r--r--src/mastodon_client.rs2
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<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