mirror of
https://github.com/redlib-org/redlib.git
synced 2025-06-08 07:37:45 +00:00
Fix Subreddit Icons
This commit is contained in:
parent
44d44a529c
commit
280e16bd7f
4 changed files with 19 additions and 14 deletions
|
@ -65,7 +65,7 @@ async fn user(name: &String) -> Result<User, &'static str> {
|
|||
// Parse the JSON output into a User struct
|
||||
Ok(User {
|
||||
name: name.to_string(),
|
||||
icon: format_url(nested_val(&res, "subreddit", "icon_img").await.as_str()).await,
|
||||
icon: format_url(nested_val(&res, "subreddit", "icon_img").await).await,
|
||||
karma: res["data"]["total_karma"].as_i64().unwrap(),
|
||||
banner: nested_val(&res, "subreddit", "banner_img").await,
|
||||
description: nested_val(&res, "subreddit", "public_description").await,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue