half broken editing

This commit is contained in:
Julian Lam
2013-06-04 16:47:07 -04:00
parent 2b4782b376
commit 061c7a9e66
4 changed files with 31 additions and 21 deletions

View File

@@ -291,9 +291,9 @@ marked.setOptions({
});
}
Posts.getRawContent = function(pid, socket) {
Posts.getRawContent = function(pid, callback) {
RDB.get('pid:' + pid + ':content', function(err, raw) {
socket.emit('api:posts.getRawPost', { post: raw });
callback(raw);
});
}