From: Simon Tatham Date: Mon, 1 Jan 2024 12:05:07 +0000 (+0000) Subject: Leave out the double-check of the account name. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=ec811085c5d91ae962d7b59eb1641f691dc915cb;p=mastodonochrome.git Leave out the double-check of the account name. Turns out it's case-insensitive, bah. --- diff --git a/src/client.rs b/src/client.rs index 6a68b90..55c1e58 100644 --- a/src/client.rs +++ b/src/client.rs @@ -642,11 +642,6 @@ impl Client { url.clone(), e.to_string())), } }?; - if ac.acct != name && self.fq(&ac.acct) != name { - return Err(ClientError::UrlError( - url.clone(), format!("request returned wrong account name {}", - &ac.acct))); - } self.cache_account(&ac); Ok(ac) }