mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
Fixes bug where if post edit was called without a title, NodeBB would crash
This commit is contained in:
@@ -86,7 +86,7 @@ module.exports = function(Posts) {
|
|||||||
|
|
||||||
function editMainPost(data, postData, callback) {
|
function editMainPost(data, postData, callback) {
|
||||||
var tid = postData.tid;
|
var tid = postData.tid;
|
||||||
var title = data.title.trim();
|
var title = data.title ? data.title.trim() : '';
|
||||||
|
|
||||||
async.parallel({
|
async.parallel({
|
||||||
topic: function(next) {
|
topic: function(next) {
|
||||||
|
|||||||
Reference in New Issue
Block a user