mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +01:00
part 1 of notif refactor
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user