mirror of
https://github.com/redlib-org/redlib.git
synced 2025-06-08 07:37:45 +00:00
Optimize Sequencing
This commit is contained in:
parent
4ec529cdb8
commit
f49bff9853
6 changed files with 33 additions and 33 deletions
|
@ -67,7 +67,7 @@ async fn user(name: &str) -> Result<User, &'static str> {
|
|||
Ok(User {
|
||||
name: name.to_string(),
|
||||
title: nested_val(&res, "subreddit", "title"),
|
||||
icon: format_url(nested_val(&res, "subreddit", "icon_img")).await,
|
||||
icon: format_url(nested_val(&res, "subreddit", "icon_img")),
|
||||
karma: res["data"]["total_karma"].as_i64().unwrap(),
|
||||
created: Utc.timestamp(created, 0).format("%b %e, %Y").to_string(),
|
||||
banner: nested_val(&res, "subreddit", "banner_img"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue