Skip to content

Commit

Permalink
fix: enable topic thumbnails across the board [breaking]
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlam committed Dec 9, 2020
1 parent a30c8ab commit 9342d61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion install/data/defaults.json
Expand Up @@ -29,7 +29,7 @@
"maximumTagsPerTopic": 5,
"minimumTagLength": 3,
"maximumTagLength": 15,
"allowTopicsThumbnail": 0,
"allowTopicsThumbnail": 1,
"registrationType": "normal",
"registrationApprovalType": "normal",
"allowAccountDelete": 1,
Expand Down
Expand Up @@ -3,13 +3,14 @@
const meta = require('../../meta');

module.exports = {
name: 'Increase maximum topic thumb size default',
name: 'Config changes for new topic thumbnails',
timestamp: Date.UTC(2020, 11, 8),
method: async () => {
const current = await meta.configs.get('topicThumbSize');

if (parseInt(current, 10) === 120) {
await meta.configs.set('topicThumbSize', 512);
}
await meta.configs.set('allowTopicsThumbnail', 1);
},
};

0 comments on commit 9342d61

Please sign in to comment.