aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--README.md3
-rw-r--r--controllers/uploadController.js2
3 files changed, 4 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 13b9656..5c95e05 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,3 +11,4 @@ pages/custom/**
migrate.js
yarn.lock
package-lock.json
+.vscode/
diff --git a/README.md b/README.md
index 9c43f2f..f1f2072 100644
--- a/README.md
+++ b/README.md
@@ -56,7 +56,8 @@ Because of how nodejs apps work, if you want it attached to a domain name you wi
## Sites using loli-safe
- [lolisafe.moe](https://lolisafe.moe): A small safe worth protecting.
- [safe.moe](https://safe.moe): The world's most ~~un~~safe pomf clone
-- [updx.xyz](http://updx.xyz) A shitty clone. ~~At least the files are more secure!~~
+- [updx.xyz](http://updx.xyz): A shitty clone. ~~At least the files are more secure!~~
+- [safe.fiery.me](https://safe.fiery.me): Just another clone.
- Feel free to add yours here.
## Author
diff --git a/controllers/uploadController.js b/controllers/uploadController.js
index 3fb9b55..9f10c8c 100644
--- a/controllers/uploadController.js
+++ b/controllers/uploadController.js
@@ -98,7 +98,7 @@ uploadsController.actuallyUpload = async (req, res, userid, album) => {
hash: fileHash,
ip: req.ip,
albumid: album,
- userid: userid.id,
+ userid: userid !== undefined ? userid.id : null,
timestamp: Math.floor(Date.now() / 1000)
});
} else {