mirror of
https://github.com/redlib-org/redlib.git
synced 2025-05-16 06:53:02 +00:00
Highlight Post Authors in Comments
This commit is contained in:
parent
b1071e9579
commit
b1a572072c
5 changed files with 11 additions and 4 deletions
|
@ -133,7 +133,7 @@ async fn parse_post(json: serde_json::Value) -> Result<Post, &'static str> {
|
|||
} else {
|
||||
"white".to_string()
|
||||
},
|
||||
)
|
||||
),
|
||||
};
|
||||
|
||||
Ok(post)
|
||||
|
|
|
@ -33,7 +33,9 @@ pub async fn render(sub_name: String, sort: Option<String>, ends: (Option<String
|
|||
},
|
||||
};
|
||||
|
||||
let sub_result = if !&sub_name.contains("+") { subreddit(&sub_name).await } else {
|
||||
let sub_result = if !&sub_name.contains("+") {
|
||||
subreddit(&sub_name).await
|
||||
} else {
|
||||
Ok(Subreddit {
|
||||
name: String::new(),
|
||||
title: String::new(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue