From ec811085c5d91ae962d7b59eb1641f691dc915cb Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Mon, 1 Jan 2024 12:05:07 +0000 Subject: [PATCH] Leave out the double-check of the account name. Turns out it's case-insensitive, bah. --- src/client.rs | 5 ----- 1 file changed, 5 deletions(-) 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) } -- 2.30.2