From 9e7f929029691dad7f3fceb7c84e9551d1a8b4ba Mon Sep 17 00:00:00 2001 From: psychobunny Date: Thu, 18 Sep 2014 17:36:23 -0400 Subject: [PATCH] updated filter:sockets.sendNewPostToUids and added type --- src/socket.io/posts.js | 4 +++- src/socket.io/topics.js | 14 +++++++++----- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/socket.io/posts.js b/src/socket.io/posts.js index d3b772052e..aaee8a1500 100644 --- a/src/socket.io/posts.js +++ b/src/socket.io/posts.js @@ -52,7 +52,9 @@ SocketPosts.reply = function(socket, data, callback) { return; } - plugins.fireHook('filter:sockets.sendNewPostsToUids', {uidsTo: uids, uidFrom: data.uid}, function(err, uids) { + plugins.fireHook('filter:sockets.sendNewPostToUids', {uidsTo: uids, uidFrom: data.uid, type: "newPost"}, function(err, data) { + uids = data.uids; + for(var i=0; i