fix: naive checking to handle uploaded images whose filenames end with '-resized'

This commit is contained in:
Julian Lam
2024-11-07 12:11:00 -05:00
parent 05fb8aa505
commit 1268ed50ca
2 changed files with 2 additions and 1 deletions

View File

@@ -78,6 +78,7 @@ apiController.loadConfig = async function (req) {
enablePostHistory: meta.config.enablePostHistory === 1,
timeagoCutoff: meta.config.timeagoCutoff !== '' ? Math.max(0, parseInt(meta.config.timeagoCutoff, 10)) : meta.config.timeagoCutoff,
timeagoCodes: languages.timeagoCodes,
resizeImageWidth: meta.config.resizeImageWidth,
cookies: {
enabled: meta.config.cookieConsentEnabled === 1,
message: translator.escape(validator.escape(meta.config.cookieConsentMessage || '[[global:cookies.message]]')).replace(/\\/g, '\\\\'),