From e8265efc204925dd3ff30a90468cc2024ea16afa Mon Sep 17 00:00:00 2001 From: barisusakli Date: Tue, 25 Mar 2014 12:10:42 -0400 Subject: [PATCH] closes #1271 --- src/socket.io/posts.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/socket.io/posts.js b/src/socket.io/posts.js index 3a11a5b659..63f97a5bce 100644 --- a/src/socket.io/posts.js +++ b/src/socket.io/posts.js @@ -113,6 +113,10 @@ function sendNotificationToPostOwner(data, uid, message) { return; } + if (uid === parseInt(postData.uid)) { + return; + } + async.parallel({ username: function(next) { user.getUserField(uid, 'username', next);