mirror of
https://github.com/redlib-org/redlib.git
synced 2025-05-04 20:30:37 +00:00
Inline videos/gifs for card view (#107)
* Basic gallery support * Inline videos for card view
This commit is contained in:
parent
cf45d53fdd
commit
7edca18f8d
5 changed files with 16 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue