feat: raise maximum thumb size to 512

v1.18.x
Julian Lam 4 years ago
parent 1c5cdb5121
commit 37c367d6ff

@ -44,7 +44,7 @@
"rejectImageWidth": 5000,
"rejectImageHeight": 5000,
"resizeImageQuality": 80,
"topicThumbSize": 120,
"topicThumbSize": 512,
"minimumTitleLength": 3,
"maximumTitleLength": 255,
"minimumUsernameLength": 2,

@ -0,0 +1,15 @@
'use strict';
const meta = require('../../meta');
module.exports = {
name: 'Increase maximum topic thumb size default',
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);
}
},
};
Loading…
Cancel
Save