mirror of
https://github.com/redlib-org/redlib.git
synced 2025-05-04 20:30:37 +00:00
Parse GIFs correctly
This commit is contained in:
parent
7a33ed3434
commit
541c741bde
4 changed files with 14 additions and 40 deletions
|
@ -91,7 +91,7 @@ async fn parse_post(json: &serde_json::Value) -> Post {
|
|||
score: format_num(score),
|
||||
upvote_ratio: ratio as i64,
|
||||
post_type,
|
||||
thumbnail: format_url(val(post, "thumbnail")),
|
||||
thumbnail: format_url(val(post, "thumbnail").as_str()),
|
||||
flair: Flair(
|
||||
val(post, "link_flair_text"),
|
||||
val(post, "link_flair_background_color"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue