fix: references to since-removed Topics.thumbs.resizeAndUpload

v1.18.x
Julian Lam 4 years ago
parent 90497e3ef5
commit 1f0c1cd229

@ -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) {

@ -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');

Loading…
Cancel
Save