mirror of
https://github.com/redlib-org/redlib.git
synced 2025-04-04 21:47:40 +03:00
Add option to hide score
Add the option to hide score for posts and comments in preferences. There is still however a blank margin where the score is supposed to be.
This commit is contained in:
parent
e25622dac2
commit
df3d894947
12 changed files with 36 additions and 5 deletions
|
@ -519,6 +519,7 @@ pub struct Preferences {
|
|||
pub subscriptions: Vec<String>,
|
||||
pub filters: Vec<String>,
|
||||
pub hide_awards: String,
|
||||
pub hide_score: String,
|
||||
}
|
||||
|
||||
#[derive(RustEmbed)]
|
||||
|
@ -553,6 +554,7 @@ impl Preferences {
|
|||
subscriptions: setting(&req, "subscriptions").split('+').map(String::from).filter(|s| !s.is_empty()).collect(),
|
||||
filters: setting(&req, "filters").split('+').map(String::from).filter(|s| !s.is_empty()).collect(),
|
||||
hide_awards: setting(&req, "hide_awards"),
|
||||
hide_score: setting(&req, "hide_score"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue