mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-16 13:30:23 +01:00
feat: raise maximum thumb size to 512
This commit is contained in:
@@ -44,7 +44,7 @@
|
||||
"rejectImageWidth": 5000,
|
||||
"rejectImageHeight": 5000,
|
||||
"resizeImageQuality": 80,
|
||||
"topicThumbSize": 120,
|
||||
"topicThumbSize": 512,
|
||||
"minimumTitleLength": 3,
|
||||
"maximumTitleLength": 255,
|
||||
"minimumUsernameLength": 2,
|
||||
|
||||
15
src/upgrades/1.16.0/bump_topicThumbSize.js
Normal file
15
src/upgrades/1.16.0/bump_topicThumbSize.js
Normal 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);
|
||||
}
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user