feat: raise maximum thumb size to 512

This commit is contained in:
Julian Lam
2020-12-08 09:47:10 -05:00
parent 1c5cdb5121
commit 37c367d6ff
2 changed files with 16 additions and 1 deletions

View File

@@ -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);
}
},
};