diff --git a/src/lib.rs b/src/lib.rs index 5ac1986..d354274 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -627,11 +627,11 @@ impl Mastodon { pub fn statuses<'a, S>(&self, id: &str, request: S) -> Result> where S: Into>> { - let url = if let Some(request) = request.into() { - request.to_querystring() - } else { - format!("{}/api/v1/accounts/{}/statuses", self.base, id) - }; + let mut url = format!("{}/api/v1/accounts/{}/statuses", self.base, id); + + if let Some(request) = request.into() { + url = format!("{}{}", url, request.to_querystring()); + } let response = self.client.get(&url) .headers(self.headers.clone())