mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 18:16:17 +01:00
missing nconf require
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
var nconf = require('nconf');
|
||||
|
||||
var helpers = {};
|
||||
|
||||
|
||||
@@ -234,8 +234,7 @@ Controllers.outgoing = function(req, res, next) {
|
||||
if (url) {
|
||||
res.render('outgoing', data);
|
||||
} else {
|
||||
res.status(404);
|
||||
res.redirect(nconf.get('relative_path') + '/404');
|
||||
res.status(404).redirect(nconf.get('relative_path') + '/404');
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ tagsController.getTag = function(req, res, next) {
|
||||
|
||||
res.locals.metaTags = [
|
||||
{
|
||||
name: "title",
|
||||
name: 'title',
|
||||
content: tag
|
||||
},
|
||||
{
|
||||
@@ -36,7 +36,7 @@ tagsController.getTag = function(req, res, next) {
|
||||
content: tag
|
||||
},
|
||||
{
|
||||
property: "og:url",
|
||||
property: 'og:url',
|
||||
content: nconf.get('url') + '/tags/' + tag
|
||||
}
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user