diff --git a/src/api_client/mod.rs b/src/api_client/mod.rs index 002248e..c56078c 100644 --- a/src/api_client/mod.rs +++ b/src/api_client/mod.rs @@ -107,7 +107,7 @@ impl racal::reqwest::ApiClient for AuthenticatedVRC { { let response = response.error_for_status()?; let val = response.bytes().await?; - dbg!(std::str::from_utf8(&val)).ok(); + //dbg!(std::str::from_utf8(&val)).ok(); Ok(queryable.deserialize(&val)?) } } @@ -359,7 +359,8 @@ impl UnauthenticatedVRC { let auth: String = extract_cookie(response.headers(), "auth=") .ok_or_else(|| serde_json::Error::custom("auth cookie is missing"))?; - let resp = self.handle_response::(queryable, response).await?; + let resp: LoginResponseOrCurrentUser = + self.handle_response(queryable, response).await?; let resp = match resp { LoginResponseOrCurrentUser::Login(login_resp) => login_resp, diff --git a/src/model/users.rs b/src/model/users.rs index 95f4aaa..6c2868d 100644 --- a/src/model/users.rs +++ b/src/model/users.rs @@ -205,7 +205,7 @@ pub struct AccountData { pub current_avatar_image_url: Url, /// The current avatar tags or empty string. #[serde(default)] - pub current_avatar_tags: Vec, + pub current_avatar_tags: serde_json::Value, /// The avatar's smaller image, for profile picture see the [profile pic /// override](Self::profile_pic_override) pub current_avatar_thumbnail_image_url: Url,