part 1 of notif refactor

This commit is contained in:
barisusakli
2014-09-08 23:03:37 -04:00
parent 01f983e29c
commit 493d0dea1e
17 changed files with 323 additions and 285 deletions

View File

@@ -165,10 +165,11 @@ module.exports = function(User) {
bodyShort: '[[user:username_taken_workaround, ' + userData.username + ']]',
bodyLong: '',
image: 'brand:logo',
nid: 'username_taken:' + uid,
datetime: Date.now()
}, function(err, nid) {
if (!err) {
notifications.push(nid, uid);
}, function(err, notification) {
if (!err && notification) {
notifications.push(notification, uid);
}
});
}