From 2486347b14af8f8b506ffdc50591c7a2430e2d2a Mon Sep 17 00:00:00 2001 From: Nick Lowery Date: Sun, 14 Nov 2021 17:45:18 -0700 Subject: [PATCH] Fix follows not being case-sensitive (#316) --- src/user.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/user.rs b/src/user.rs index b02e37e..9179551 100644 --- a/src/user.rs +++ b/src/user.rs @@ -70,7 +70,7 @@ async fn user(name: &str) -> Result { // Parse the JSON output into a User struct User { - name: name.to_string(), + name: res["data"]["name"].as_str().unwrap_or(name).to_owned(), title: esc!(about("title")), icon: format_url(&about("icon_img")), karma: res["data"]["total_karma"].as_i64().unwrap_or(0),