Fix follows not being case-sensitive (#316)

This commit is contained in:
Nick Lowery 2021-11-14 17:45:18 -07:00 committed by GitHub
parent c298109a7b
commit 2486347b14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,7 +70,7 @@ async fn user(name: &str) -> Result<User, String> {
// 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),