mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
refactored user.js
took out notifications, email and reset code to separate files
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user