From 3de2b3a5729b578383e56ada3b744da2db3cbfae Mon Sep 17 00:00:00 2001 From: jessop Date: Tue, 12 Feb 2019 12:32:55 -0500 Subject: [PATCH 1/2] updates lodash for vulnerabilities --- package-lock.json | 6 +++--- package.json | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index bfd34b73..a1413b3f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8091,9 +8091,9 @@ } }, "lodash": { - "version": "4.17.10", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.10.tgz", - "integrity": "sha512-UejweD1pDoXu+AD825lWwp4ZGtSwgnpZxb3JDViD7StjQz+Nb/6l093lx4OQ0foGWNRoc19mWy7BzL+UAK2iVg==" + "version": "4.17.11", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", + "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==" }, "lodash.assign": { "version": "4.2.0", diff --git a/package.json b/package.json index 8698d893..19a168ba 100644 --- a/package.json +++ b/package.json @@ -50,6 +50,7 @@ "image-size": "^0.6.3", "inquirer": "^5.2.0", "ip": "^1.1.5", + "lodash": "^4.17.11", "make-dir": "^1.3.0", "mime-types": "^2.1.21", "module-alias": "^2.1.0", -- 2.45.2 From 5e8e22dcad6720bfb6004d622ff938a051537890 Mon Sep 17 00:00:00 2001 From: jessop Date: Tue, 12 Feb 2019 19:38:07 -0500 Subject: [PATCH 2/2] enables nsfw updates --- client/src/components/PublishNsfwInput/index.jsx | 2 +- server/utils/getClaimData.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/components/PublishNsfwInput/index.jsx b/client/src/components/PublishNsfwInput/index.jsx index 602f7b72..99562be0 100644 --- a/client/src/components/PublishNsfwInput/index.jsx +++ b/client/src/components/PublishNsfwInput/index.jsx @@ -14,7 +14,7 @@ const PublishNsfwInput = ({ nsfw, handleInput }) => { type='checkbox' id='publish-nsfw' name='nsfw' - value={nsfw} + checked={nsfw} onChange={handleInput} /> } diff --git a/server/utils/getClaimData.js b/server/utils/getClaimData.js index f725f94e..b95d0847 100644 --- a/server/utils/getClaimData.js +++ b/server/utils/getClaimData.js @@ -53,6 +53,7 @@ module.exports = async (data, chName = null, chShortId = null) => { claimId: dataVals.claim_id || data.claimId, fileExt: fileExt, description: dataVals.description, + nsfw: dataVals.is_nsfw, thumbnail: dataVals.thumbnail_url || data.thumbnail || thumbnail, outpoint, host, -- 2.45.2