diff options
| author | Pitu <[email protected]> | 2018-09-16 05:42:38 -0300 |
|---|---|---|
| committer | Pitu <[email protected]> | 2018-09-16 05:42:38 -0300 |
| commit | 90011334147eaa3b480e0dc9f80cc83bb83b3cd5 (patch) | |
| tree | aedd93c2fafb791d4a610c71f13c881143d69b42 /src/api | |
| parent | We really dont want to source control the uploads folder (diff) | |
| download | host.fuwn.me-90011334147eaa3b480e0dc9f80cc83bb83b3cd5.tar.xz host.fuwn.me-90011334147eaa3b480e0dc9f80cc83bb83b3cd5.zip | |
Links are managed elsewhere, so there's no point in this
Diffstat (limited to 'src/api')
| -rw-r--r-- | src/api/routes/albums/albumPOST.js | 4 | ||||
| -rw-r--r-- | src/api/routes/files/uploadPOST.js | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/api/routes/albums/albumPOST.js b/src/api/routes/albums/albumPOST.js index 24ccca8..c2e7c4e 100644 --- a/src/api/routes/albums/albumPOST.js +++ b/src/api/routes/albums/albumPOST.js @@ -15,7 +15,7 @@ class albumPOST extends Route { const album = await db.table('albums').where({ name, - enabled: true, + // enabled: true, userId: user.id }).first(); @@ -31,7 +31,7 @@ class albumPOST extends Route { */ await db.table('albums').insert({ name, - enabled: true, + // enabled: true, userId: user.id, createdAt: now, editedAt: now diff --git a/src/api/routes/files/uploadPOST.js b/src/api/routes/files/uploadPOST.js index e152ac8..9ecf7ee 100644 --- a/src/api/routes/files/uploadPOST.js +++ b/src/api/routes/files/uploadPOST.js @@ -41,8 +41,10 @@ class uploadPOST extends Route { if (!album) return res.status(401).json({ message: 'Album doesn\'t exist or it doesn\'t belong to the user' }); } + /* if (!albumId) log.info('Incoming file'); else log.info(`Incoming file for album ${albumId}`); + */ let upload = file.data; /* @@ -167,7 +169,7 @@ class uploadPOST extends Route { If exif removal has been force service-wide or requested by the user, remove it */ if (config.uploads.forceStripExif) { // || user.settings.stripExif) { - Util.removeExif(upload.filename); + // Util.removeExif(upload.filename); } /* |