Sfoglia il codice sorgente

Merge pull request #68 from BobbyWibowo/master

Added safe.fiery.me to README.md.
Kana 6 anni fa
parent
commit
f1cc65a55e
3 ha cambiato i file con 4 aggiunte e 2 eliminazioni
  1. 1 0
      .gitignore
  2. 2 1
      README.md
  3. 1 1
      controllers/uploadController.js

+ 1 - 0
.gitignore

@@ -11,3 +11,4 @@ pages/custom/**
 migrate.js
 yarn.lock
 package-lock.json
+.vscode/

+ 2 - 1
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

+ 1 - 1
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 {