diff options
author | Akkerman <akkerman@insula.org.ua> | 2023-09-03 17:02:52 +0300 |
---|---|---|
committer | Akkerman <akkerman@insula.org.ua> | 2023-09-03 17:02:52 +0300 |
commit | 03721a8b60e1bf7f463f92cccbd27e156ed40960 (patch) | |
tree | 450a1652afb4fb3c352ed093a4eedae8e1b6624b | |
parent | 323238757ce234123d78615af01b6a8c3c0e6041 (diff) |
Test
-rw-r--r-- | src/mastodon.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mastodon.rs b/src/mastodon.rs index 23b0638..085376e 100644 --- a/src/mastodon.rs +++ b/src/mastodon.rs @@ -195,9 +195,9 @@ impl Mastodon { /// Edit existing status pub async fn edit_status(&self, id: &StatusId, status: NewStatus) -> Result<Status> { - let route = self.route(format!("/api/v1/statuses/{}", id)); + let url = self.route(format!("/api/v1/statuses/{}", id)); let response = self - .authenticated(self.client.put(route)) + .authenticated(self.client.put(&url)) .json(&status) .send() .await?; @@ -208,7 +208,6 @@ impl Mastodon { read_response(response).await } - /// Post a new status to the account. pub async fn new_status(&self, status: NewStatus) -> Result<Status> { let url = self.route("/api/v1/statuses"); |