mirror of
https://github.com/redlib-org/redlib.git
synced 2025-04-06 06:27:40 +03:00
Fix #66
This commit is contained in:
parent
9a1733ac99
commit
971f14bb55
2 changed files with 12 additions and 2 deletions
|
@ -343,7 +343,11 @@ pub async fn fetch_posts(path: &str, fallback_title: String) -> Result<(Vec<Post
|
|||
},
|
||||
distinguished: val(post, "distinguished"),
|
||||
},
|
||||
score: format_num(score),
|
||||
score: if post["data"]["hide_score"].as_bool().unwrap_or_default() {
|
||||
"•".to_string()
|
||||
} else {
|
||||
format_num(score)
|
||||
},
|
||||
upvote_ratio: ratio as i64,
|
||||
post_type,
|
||||
thumbnail: Media {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue