fixed inconsistent indenting

This commit is contained in:
2026-05-31 12:38:00 +01:00
parent 27149b1f01
commit 9b10188066
7 changed files with 492 additions and 490 deletions
+2 -1
View File
@@ -216,7 +216,8 @@ router.get(`${config.site_path}/search`, (req, res) => {
console.log('searching for: ', search_term);
const search_results = data.searchdata(search_term, search_type); // data.searchdata returns an array of search results
res.render('pages/search', {
res.render('pages/search',
{
config,
locale,
search_results,
+4 -2
View File
@@ -35,7 +35,8 @@ router.get(`${config.site_path}/${config.signup_url}`, (req,res) => {
}); // /signup
router.get(`${config.site_path}/${config.edit_account_base_url}/:user_id`, (req,res) => {
const userID = parseInt(req.params.user_id);
res.render("forms/edit_account", {
res.render("forms/edit_account",
{
config,
locale,
user: data.getdata('users', 'id', userID),
@@ -46,7 +47,8 @@ router.get(`${config.site_path}/${config.edit_post_base_url}/:post_id`, (req,res
const postID = req.params.post_id
const post = data.getdata('posts','id', postID)
const user = data.getdata('users', 'id', post.userID)
res.render("forms/edit_post", {
res.render("forms/edit_post",
{
config,
locale,
post,
+1 -2
View File
@@ -82,8 +82,7 @@ function perform_checks()
}
perform_checks()
app.listen(config.port, () => {
console.log(`Server is running at http://localhost:${config.port} webroot: ${config.root_path}`);
console.log("Running in: ", __dirname)
});
})