From 1f0c1cd2293903bda3fe024d94760f076b80334c Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 3 Dec 2020 15:11:47 -0500 Subject: [PATCH] fix: references to since-removed Topics.thumbs.resizeAndUpload --- src/posts/edit.js | 5 ----- src/topics/create.js | 1 - 2 files changed, 6 deletions(-) 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');