mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-23 00:40:23 +01:00
updating notifications.create to accept a hash instead of discrete arguments - breaking change
This commit is contained in:
@@ -103,7 +103,11 @@ SocketModules.chats.send = function(socket, data) {
|
||||
notifText = 'New message from <strong>' + username + '</strong>';
|
||||
|
||||
if (!module.parent.exports.isUserOnline(touid)) {
|
||||
notifications.create(notifText, 'javascript:app.openChat('' + username + '', ' + socket.uid + ');', 'notification_' + socket.uid + '_' + touid, function(nid) {
|
||||
notifications.create({
|
||||
text: notifText,
|
||||
path: 'javascript:app.openChat('' + username + '', ' + socket.uid + ');',
|
||||
uniqueId: 'notification_' + socket.uid + '_' + touid
|
||||
}, function(nid) {
|
||||
notifications.push(nid, [touid], function(success) {
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user