forked from MightyPork/elefren-fork
follow returns a Relationship, not an Account
This commit is contained in:
+1
-1
@@ -211,7 +211,7 @@ impl<H: HttpSend> MastodonClient<H> for Mastodon<H> {
|
|||||||
|
|
||||||
route_id! {
|
route_id! {
|
||||||
(get) get_account: "accounts/{}" => Account,
|
(get) get_account: "accounts/{}" => Account,
|
||||||
(post) follow: "accounts/{}/follow" => Account,
|
(post) follow: "accounts/{}/follow" => Relationship,
|
||||||
(post) unfollow: "accounts/{}/unfollow" => Relationship,
|
(post) unfollow: "accounts/{}/unfollow" => Relationship,
|
||||||
(get) block: "accounts/{}/block" => Account,
|
(get) block: "accounts/{}/block" => Account,
|
||||||
(get) unblock: "accounts/{}/unblock" => Account,
|
(get) unblock: "accounts/{}/unblock" => Account,
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ pub trait MastodonClient<H: HttpSend = HttpSender> {
|
|||||||
unimplemented!("This method was not implemented");
|
unimplemented!("This method was not implemented");
|
||||||
}
|
}
|
||||||
/// POST /api/v1/accounts/:id/follow
|
/// 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");
|
unimplemented!("This method was not implemented");
|
||||||
}
|
}
|
||||||
/// POST /api/v1/accounts/:id/unfollow
|
/// POST /api/v1/accounts/:id/unfollow
|
||||||
|
|||||||
Reference in New Issue
Block a user