also mark user online if they post a reply
This commit is contained in:
Barış Soner Uşaklı
2015-03-25 15:51:11 -04:00
parent f928b87997
commit 36942125e6
2 changed files with 30 additions and 3 deletions

View File

@@ -49,6 +49,8 @@ SocketPosts.reply = function(socket, data, callback) {
socket.emit('event:new_post', result);
user.updateOnlineUsers(socket.uid);
SocketPosts.notifyOnlineUsers(socket.uid, result);
if (data.lock) {