aboutsummaryrefslogtreecommitdiff
path: root/src/api/routes
diff options
context:
space:
mode:
authorPitu <[email protected]>2019-10-12 14:58:58 +0900
committerPitu <[email protected]>2019-10-12 14:58:58 +0900
commit459ab5433b9c3b60f43f9b2293189be8e29e0e84 (patch)
tree86b32eb5e6ba30a7b1e1f37b18cdc5ed2cb8423c /src/api/routes
parentchore: wizard was a stupid name, it's setup (diff)
downloadhost.fuwn.me-459ab5433b9c3b60f43f9b2293189be8e29e0e84.tar.xz
host.fuwn.me-459ab5433b9c3b60f43f9b2293189be8e29e0e84.zip
chore: remove exif strip support.
After some thought, modifying uploaded files is not something I want to support.
Diffstat (limited to 'src/api/routes')
-rw-r--r--src/api/routes/files/uploadPOST.js8
-rw-r--r--src/api/routes/service/configGET.js1
2 files changed, 0 insertions, 9 deletions
diff --git a/src/api/routes/files/uploadPOST.js b/src/api/routes/files/uploadPOST.js
index e4d13b3..5c6bcb0 100644
--- a/src/api/routes/files/uploadPOST.js
+++ b/src/api/routes/files/uploadPOST.js
@@ -7,7 +7,6 @@ const jetpack = require('fs-jetpack');
const Busboy = require('busboy');
const fs = require('fs');
/*
- TODO: Strip exif data if the owner/user configured it as such
TODO: If source has transparency generate a png thumbnail, otherwise a jpg.
TODO: If source is a gif, generate a thumb of the first frame and play the gif on hover.
TODO: If source is a video, generate a thumb of the first frame and save the video length.
@@ -177,13 +176,6 @@ class uploadPOST extends Route {
}
/*
- If exif removal has been force service-wide or requested by the user, remove it
- */
- if (process.env.STRIP_EXIF == 'true') { // || user.settings.stripExif) {
- // Util.removeExif(upload.filename);
- }
-
- /*
Generate those thumbnails
*/
return Util.generateThumbnails(upload.filename);
diff --git a/src/api/routes/service/configGET.js b/src/api/routes/service/configGET.js
index e12c57b..b653066 100644
--- a/src/api/routes/service/configGET.js
+++ b/src/api/routes/service/configGET.js
@@ -17,7 +17,6 @@ class configGET extends Route {
albumLinkLength: parseInt(process.env.GENERATED_ALBUM_LENGTH, 10),
generateThumbnails: process.env.GENERATE_THUMBNAILS == 'true' ? true : false,
generateZips: process.env.GENERATE_ZIPS == 'true' ? true : false,
- stripExif: process.env.STRIP_EXIF == 'true' ? true : false,
publicMode: process.env.PUBLIC_MODE == 'true' ? true : false,
enableAccounts: process.env.USER_ACCOUNTS == 'true' ? true : false
}