mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: references to since-removed Topics.thumbs.resizeAndUpload
This commit is contained in:
@@ -123,11 +123,6 @@ module.exports = function (Posts) {
|
|||||||
newTopicData.slug = tid + '/' + (slugify(title) || 'topic');
|
newTopicData.slug = tid + '/' + (slugify(title) || 'topic');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data.thumb) {
|
|
||||||
await topics.thumbs.resizeAndUpload(data);
|
|
||||||
newTopicData.thumb = data.thumb;
|
|
||||||
}
|
|
||||||
|
|
||||||
data.tags = data.tags || [];
|
data.tags = data.tags || [];
|
||||||
|
|
||||||
if (data.tags.length) {
|
if (data.tags.length) {
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ module.exports = function (Topics) {
|
|||||||
Topics.create = async function (data) {
|
Topics.create = async function (data) {
|
||||||
// This is an internal method, consider using Topics.post instead
|
// This is an internal method, consider using Topics.post instead
|
||||||
const timestamp = data.timestamp || Date.now();
|
const timestamp = data.timestamp || Date.now();
|
||||||
await Topics.thumbs.resizeAndUpload(data);
|
|
||||||
|
|
||||||
const tid = await db.incrObjectField('global', 'nextTid');
|
const tid = await db.incrObjectField('global', 'nextTid');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user