proper handling of post editing, integration with ACP toggle, #2569

This commit is contained in:
Julian Lam
2014-12-31 20:48:32 -05:00
parent 325815a78d
commit 9befa6aca7
3 changed files with 12 additions and 7 deletions

View File

@@ -35,7 +35,7 @@ SocketModules.composer.push = function(socket, pid, callback) {
if (err || !canRead) {
return callback(err || new Error('[[error:no-privileges]]'));
}
posts.getPostFields(pid, ['content', 'tid'], function(err, postData) {
posts.getPostFields(pid, ['content', 'tid', 'uid'], function(err, postData) {
if(err || (!postData && !postData.content)) {
return callback(err || new Error('[[error:invalid-pid]]'));
}
@@ -61,6 +61,7 @@ SocketModules.composer.push = function(socket, pid, callback) {
callback(null, {
pid: pid,
uid: postData.uid,
body: postData.content,
title: results.topic.title,
topic_thumb: results.topic.thumb,