mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
proper handling of post editing, integration with ACP toggle, #2569
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user