mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
crash fix
if composer is opened in a topic that was deleted/purged
This commit is contained in:
@@ -71,6 +71,10 @@ SocketModules.composer.push = function(socket, pid, callback) {
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
if (!results.topic) {
|
||||
return callback(new Error('[[error:no-topic]]'));
|
||||
}
|
||||
|
||||
callback(null, {
|
||||
pid: pid,
|
||||
body: postData.content,
|
||||
|
||||
Reference in New Issue
Block a user