mirror of
https://codeberg.org/teddit/teddit.git
synced 2026-03-05 13:30:33 -05:00
make the preference show_upvoted_percentage configurable via config.js #274
This commit is contained in:
@@ -68,6 +68,10 @@ overridingRoutes.all('*', (req, res, next) => {
|
||||
maxAge: 31536000,
|
||||
httpOnly: true,
|
||||
});
|
||||
} else if (!req.cookies.show_upvoted_percentage) {
|
||||
if (config.show_upvoted_percentage) {
|
||||
req.cookies.show_upvoted_percentage = 'true';
|
||||
}
|
||||
}
|
||||
|
||||
let domainTwitter = req.query.domain_twitter;
|
||||
|
||||
Reference in New Issue
Block a user