mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +01:00
closes #5813
This commit is contained in:
@@ -291,8 +291,8 @@ Controllers.confirmEmail = function (req, res) {
|
||||
Controllers.robots = function (req, res) {
|
||||
res.set('Content-Type', 'text/plain');
|
||||
|
||||
if (meta.config['robots.txt']) {
|
||||
res.send(meta.config['robots.txt']);
|
||||
if (meta.config['robots:txt']) {
|
||||
res.send(meta.config['robots:txt']);
|
||||
} else {
|
||||
res.send('User-agent: *\n' +
|
||||
'Disallow: ' + nconf.get('relative_path') + '/admin/\n' +
|
||||
|
||||
Reference in New Issue
Block a user