mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
some more fixes, cant quote and see deleted messages
This commit is contained in:
@@ -93,7 +93,17 @@ SocketPosts.uploadFile = function(socket, data, callback) {
|
||||
};
|
||||
|
||||
SocketPosts.getRawPost = function(socket, pid, callback) {
|
||||
posts.getPostField(pid, 'content', callback);
|
||||
posts.getPostFields(pid, ['content', 'deleted'], function(err, data) {
|
||||
if(err) {
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
if(data.deleted === '1') {
|
||||
return callback(new Error('This post no longer exists'));
|
||||
}
|
||||
|
||||
callback(null, data.content);
|
||||
});
|
||||
};
|
||||
|
||||
SocketPosts.edit = function(socket, data, callback) {
|
||||
|
||||
Reference in New Issue
Block a user