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/package-lock.json b/package-lock.json index a1413b3f..bfd34b73 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8091,9 +8091,9 @@ } }, "lodash": { - "version": "4.17.11", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", - "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==" + "version": "4.17.10", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.10.tgz", + "integrity": "sha512-UejweD1pDoXu+AD825lWwp4ZGtSwgnpZxb3JDViD7StjQz+Nb/6l093lx4OQ0foGWNRoc19mWy7BzL+UAK2iVg==" }, "lodash.assign": { "version": "4.2.0", diff --git a/package.json b/package.json index 19a168ba..8698d893 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,6 @@ "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", 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,