This commit is contained in:
Zutatensuppe 2021-05-04 09:48:14 +02:00
parent 43a2c3ea7c
commit 40c6ec0877

View file

@ -51,7 +51,7 @@ const allImages = () => {
.map(f => ({ .map(f => ({
filename: f, filename: f,
file: `${UPLOAD_DIR}/${f}`, file: `${UPLOAD_DIR}/${f}`,
url: `${UPLOAD_URL}/${f}`, url: `${UPLOAD_URL}/${encodeURIComponent(f)}`,
})) }))
.sort((a, b) => { .sort((a, b) => {
return fs.statSync(b.file).mtime.getTime() - return fs.statSync(b.file).mtime.getTime() -