This should change it back closes #158 (#160)

merge-requests/208/head
Thomas Lynch 4 years ago committed by GitHub
parent bd427b929e
commit 2e47790350
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      models/forms/makepost.js

@ -306,7 +306,7 @@ module.exports = async (req, res, next) => {
salt = (await randomBytes(128)).toString('base64');
}
if (ids === true) {
const fullUserIdHash = createHash('sha256').update(salt + res.locals.ip.single).digest('hex');
const fullUserIdHash = createHash('sha256').update(salt + res.locals.ip.raw).digest('hex');
userId = fullUserIdHash.substring(fullUserIdHash.length-6);
}
let country = null;

Loading…
Cancel
Save