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:
gmnsii 2023-03-22 20:08:20 -07:00
parent e25622dac2
commit df3d894947
12 changed files with 36 additions and 5 deletions

View file

@ -129,6 +129,7 @@ impl InstanceInfo {
container.add_table(
Table::from([
["Hide awards", &convert(&self.config.default_hide_awards)],
["Hide score", &convert(&self.config.default_hide_score)],
["Theme", &convert(&self.config.default_theme)],
["Front page", &convert(&self.config.default_front_page)],
["Layout", &convert(&self.config.default_layout)],
@ -158,6 +159,7 @@ impl InstanceInfo {
Config:\n
Banner: {:?}\n
Hide awards: {:?}\n
Hide score: {:?}\n
Default theme: {:?}\n
Default front page: {:?}\n
Default layout: {:?}\n
@ -177,6 +179,7 @@ impl InstanceInfo {
self.config.sfw_only,
self.config.banner,
self.config.default_hide_awards,
self.config.default_hide_score,
self.config.default_theme,
self.config.default_front_page,
self.config.default_layout,