mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-10 20:53:11 +02:00
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
var winston = require('winston'),
|
||||
validator = require('validator'),
|
||||
user = require('../user'),
|
||||
translator = require('../../public/src/translator');
|
||||
|
||||
@@ -34,6 +35,7 @@ module.exports = function(Meta) {
|
||||
};
|
||||
|
||||
Meta.title.parseFragment = function (urlFragment, language, callback) {
|
||||
urlFragment = validator.escape(urlFragment);
|
||||
var translated = ['', 'recent', 'unread', 'users', 'notifications'];
|
||||
if (translated.indexOf(urlFragment) !== -1) {
|
||||
if (!urlFragment.length) {
|
||||
|
||||
Reference in New Issue
Block a user