Node.js based forum software built for the modern web
fix: #9068
Barış Soner Uşaklı86f0f82be71b
diff --git a/src/posts/queue.js b/src/posts/queue.jsindex 73c6fbc261..58c8e5c140 100644--- a/src/posts/queue.js+++ b/src/posts/queue.js@@ -42,9 +42,9 @@ module.exports = function (Posts) {}function getType(data) {- if (data.tid && data.content) {+ if (data.hasOwnProperty('tid')) {return 'reply';- } else if (data.cid && data.title && data.content) {+ } else if (data.hasOwnProperty('cid')) {return 'topic';}throw new Error('[[error:invalid-type]]');