mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-03 19:11:22 +01:00
closes #2630
This commit is contained in:
@@ -26,7 +26,6 @@ module.exports = function(Meta) {
|
||||
}
|
||||
|
||||
Meta.title.parseFragment(uri, language, locals, function(err, title) {
|
||||
|
||||
if (err) {
|
||||
title = fallbackTitle;
|
||||
} else {
|
||||
@@ -41,7 +40,6 @@ module.exports = function(Meta) {
|
||||
};
|
||||
|
||||
Meta.title.parseFragment = function (urlFragment, language, locals, callback) {
|
||||
urlFragment = validator.escape(urlFragment);
|
||||
var translated = ['', 'recent', 'unread', 'users', 'notifications'];
|
||||
if (translated.indexOf(urlFragment) !== -1) {
|
||||
if (!urlFragment.length) {
|
||||
@@ -75,7 +73,7 @@ module.exports = function(Meta) {
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
if (locals.notFound) {
|
||||
if (!username) {
|
||||
username = '[[error:no-user]]';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user