diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | README.md | 3 | ||||
| -rw-r--r-- | controllers/uploadController.js | 2 |
3 files changed, 4 insertions, 2 deletions
@@ -11,3 +11,4 @@ pages/custom/** migrate.js yarn.lock package-lock.json +.vscode/ @@ -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 { |