Merge branch 'code-quality' of https://github.com/miksago/NodeBB into miksago-code-quality

Conflicts:
	src/database.js
This commit is contained in:
psychobunny
2014-04-14 17:36:10 -04:00
107 changed files with 485 additions and 466 deletions

View File

@@ -47,4 +47,4 @@ SocketCategories.getTopicCount = function(socket, cid, callback) {
categories.getCategoryField(cid, 'topic_count', callback);
};
module.exports = SocketCategories;
module.exports = SocketCategories;

View File

@@ -319,4 +319,4 @@ function emitOnlineUserCount(callback) {
/* Exporting */
module.exports = Sockets;
module.exports = Sockets;

View File

@@ -111,4 +111,4 @@ SocketMeta.rooms.getAll = function(socket, data, callback) {
/* Exports */
module.exports = SocketMeta;
module.exports = SocketMeta;

View File

@@ -231,4 +231,4 @@ SocketModules.sounds.getMapping = function(socket, data, callback) {
meta.sounds.getMapping(callback);
};
module.exports = SocketModules;
module.exports = SocketModules;

View File

@@ -12,4 +12,4 @@ SocketNotifs.getCount = function(socket, data, callback) {
user.notifications.getUnreadCount(socket.uid, callback);
};
module.exports = SocketNotifs;
module.exports = SocketNotifs;

View File

@@ -318,4 +318,4 @@ SocketPosts.getCategory = function(socket, pid, callback) {
posts.getCidByPid(pid, callback);
};
module.exports = SocketPosts;
module.exports = SocketPosts;

View File

@@ -6,4 +6,4 @@ SocketTools.log = function(socket, data, callback) {
//winston.info("captured console.log:", data)
};
module.exports = SocketTools;
module.exports = SocketTools;

View File

@@ -313,4 +313,4 @@ SocketTopics.getTidIndex = function(socket, tid, callback) {
categories.getTopicIndex(tid, callback);
};
module.exports = SocketTopics;
module.exports = SocketTopics;

View File

@@ -248,4 +248,4 @@ SocketUser.setStatus = function(socket, status, callback) {
/* Exports */
module.exports = SocketUser;
module.exports = SocketUser;

View File

@@ -8,4 +8,4 @@ SocketWidgets.render = function(socket, data, callback) {
widgets.render(socket.uid, data, callback);
};
module.exports = SocketWidgets;
module.exports = SocketWidgets;