|
|
@ -3,7 +3,7 @@
|
|
|
|
const meta = require('../../meta');
|
|
|
|
const meta = require('../../meta');
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
module.exports = {
|
|
|
|
name: 'Increase maximum topic thumb size default',
|
|
|
|
name: 'Config changes for new topic thumbnails',
|
|
|
|
timestamp: Date.UTC(2020, 11, 8),
|
|
|
|
timestamp: Date.UTC(2020, 11, 8),
|
|
|
|
method: async () => {
|
|
|
|
method: async () => {
|
|
|
|
const current = await meta.configs.get('topicThumbSize');
|
|
|
|
const current = await meta.configs.get('topicThumbSize');
|
|
|
@ -11,5 +11,6 @@ module.exports = {
|
|
|
|
if (parseInt(current, 10) === 120) {
|
|
|
|
if (parseInt(current, 10) === 120) {
|
|
|
|
await meta.configs.set('topicThumbSize', 512);
|
|
|
|
await meta.configs.set('topicThumbSize', 512);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
await meta.configs.set('allowTopicsThumbnail', 1);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|