Inline videos/gifs for card view (#107)

* Basic gallery support

* Inline videos for card view
This commit is contained in:
robrobinbin 2021-02-08 01:22:14 +01:00 committed by GitHub
parent cf45d53fdd
commit 7edca18f8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 16 additions and 1 deletions

View file

@ -102,6 +102,7 @@ async fn parse_post(json: &serde_json::Value) -> Post {
url: format_url(val(post, "thumbnail").as_str()),
width: post["data"]["thumbnail_width"].as_i64().unwrap_or_default(),
height: post["data"]["thumbnail_height"].as_i64().unwrap_or_default(),
poster: "".to_string(),
},
flair: Flair {
flair_parts: parse_rich_flair(