Skip to content

Node.js based forum software built for the modern web

also #2858

Barış Soner Uşaklıd3dca842cb2d
diff --git a/src/socket.io/topics.js b/src/socket.io/topics.js
index cd42d1fde4..b0f9d3b8c7 100644
--- a/src/socket.io/topics.js
+++ b/src/socket.io/topics.js
@@ -17,7 +17,7 @@ var nconf = require('nconf'),
meta = require('../meta'),
events = require('../events'),
utils = require('../../public/src/utils'),
- SocketPosts = require('./posts'),
+
SocketTopics = {};
@@ -312,7 +312,7 @@ SocketTopics.movePost = function(socket, data, callback) {
return callback(err);
}
- SocketPosts.sendNotificationToPostOwner(data.pid, socket.uid, 'notifications:moved_your_post');
+ require('./posts').sendNotificationToPostOwner(data.pid, socket.uid, 'notifications:moved_your_post');
callback();
});
});