This commit is contained in:
Baris Soner Usakli
2013-12-20 23:35:40 -05:00
parent f29b375ed4
commit ea2c03e28b
2 changed files with 9 additions and 16 deletions

View File

@@ -603,9 +603,9 @@ websockets.init = function(io) {
posts.uploadPostImage(data, callback);
});
socket.on('api:posts.getRawPost', function(data) {
socket.on('api:posts.getRawPost', function(data, callback) {
posts.getPostField(data.pid, 'content', function(err, raw) {
socket.emit('api:posts.getRawPost', {
callback({
post: raw
});
});