refactored user.js

took out notifications, email and reset code to separate files
This commit is contained in:
barisusakli
2014-03-12 18:00:27 -04:00
parent f47f146320
commit 3f5c51174d
6 changed files with 362 additions and 311 deletions

View File

@@ -206,7 +206,7 @@ var async = require('async'),
postData = data;
threadTools.notifyFollowers(tid, postData.pid, uid);
user.sendPostNotificationToFollowers(uid, tid, postData.pid);
user.notifications.sendPostNotificationToFollowers(uid, tid, postData.pid);
next();
},
@@ -878,7 +878,7 @@ var async = require('async'),
user.notifications.getUnreadByUniqueId(uid, 'topic:' + tid, function(err, nids) {
notifications.mark_read_multiple(nids, uid, function() {
user.pushNotifCount(uid);
user.notifications.pushCount(uid);
});
});
};