Rename internal_config to instance_config for homepage.pug

This commit is contained in:
redmt 2022-06-11 19:26:18 +02:00
parent 555ff9068b
commit cfdfd4a2b1
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ homeRoute.get('/', (req, res, next) => {
) {
return res.render('homepage', {
user_preferences: req.cookies,
internal_config: config,
instance_config: config,
});
}

View File

@ -23,8 +23,8 @@ html
a(href="/saved") Saved
each subreddit in user_preferences.subbed_subreddits
a(href="/r/" + subreddit) #{subreddit}
else if internal_config.suggested_subreddits && Array.isArray(internal_config.suggested_subreddits)
each subreddit in internal_config.suggested_subreddits
else if instance_config.suggested_subreddits && Array.isArray(instance_config.suggested_subreddits)
each subreddit in instance_config.suggested_subreddits
if subreddit.toLowerCase() === 'saved'
a(href="/saved") Saved
else