From 86f0f82be71bcd8fe922b37ed34124de9cc26fad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Sun, 6 Dec 2020 13:53:52 -0500 Subject: [PATCH] fix: #9068 --- src/posts/queue.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/posts/queue.js b/src/posts/queue.js index 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]]');