mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
updating notifications.create to accept a hash instead of discrete arguments - breaking change
This commit is contained in:
@@ -260,7 +260,11 @@ SocketPosts.flag = function(socket, pid, callback) {
|
||||
},
|
||||
function(adminGroup, next) {
|
||||
|
||||
notifications.create(message, path, 'post_flag:' + pid, function(nid) {
|
||||
notifications.create({
|
||||
text: message,
|
||||
path: path,
|
||||
uniqueId: 'post_flag:' + pid
|
||||
}, function(nid) {
|
||||
notifications.push(nid, adminGroup.members, function() {
|
||||
next(null);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user