mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
fixed socket notifications for new posts
This commit is contained in:
@@ -116,8 +116,8 @@ var RDB = require('./redis.js'),
|
||||
user.getUserFields(uid, ['username','reputation','picture'], function(data){
|
||||
|
||||
var timestamp = new Date().getTime();
|
||||
|
||||
socket.in('topic_' + tid).emit('event:new_post', {
|
||||
|
||||
io.sockets.in('topic_' + tid).emit('event:new_post', {
|
||||
'posts' : [
|
||||
{
|
||||
'pid' : pid,
|
||||
|
||||
Reference in New Issue
Block a user