diff --git a/src/posts/edit.js b/src/posts/edit.js index bb651e0dfa..4c57c2c38e 100644 --- a/src/posts/edit.js +++ b/src/posts/edit.js @@ -123,11 +123,6 @@ module.exports = function (Posts) { newTopicData.slug = tid + '/' + (slugify(title) || 'topic'); } - if (data.thumb) { - await topics.thumbs.resizeAndUpload(data); - newTopicData.thumb = data.thumb; - } - data.tags = data.tags || []; if (data.tags.length) { diff --git a/src/topics/create.js b/src/topics/create.js index cadee2fa0c..aacee91432 100644 --- a/src/topics/create.js +++ b/src/topics/create.js @@ -20,7 +20,6 @@ module.exports = function (Topics) { Topics.create = async function (data) { // This is an internal method, consider using Topics.post instead const timestamp = data.timestamp || Date.now(); - await Topics.thumbs.resizeAndUpload(data); const tid = await db.incrObjectField('global', 'nextTid');