mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 06:55:46 +01:00
@@ -32,7 +32,16 @@ SocketMeta.reconnected = function(socket) {
|
||||
};
|
||||
|
||||
SocketMeta.buildTitle = function(socket, text, callback) {
|
||||
meta.title.build(text, callback);
|
||||
if (socket.uid) {
|
||||
user.getSettings(socket.uid, function(err, settings) {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
}
|
||||
meta.title.build(text, settings.language, callback);
|
||||
});
|
||||
} else {
|
||||
meta.title.build(text, meta.config.defaultLang, callback);
|
||||
}
|
||||
};
|
||||
|
||||
SocketMeta.updateHeader = function(socket, data, callback) {
|
||||
|
||||
Reference in New Issue
Block a user