From e1ec3bb9797193ef96950428862e8fb2b430063f Mon Sep 17 00:00:00 2001 From: Alex Liebowitz Date: Wed, 11 Jan 2017 02:45:23 -0500 Subject: [PATCH] Fix nsfw check in FileTile --- js/component/file-tile.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/component/file-tile.js b/js/component/file-tile.js index 208de9f9b..2477e0841 100644 --- a/js/component/file-tile.js +++ b/js/component/file-tile.js @@ -128,13 +128,12 @@ let FileTile = React.createClass({ this._isMounted = false; }, render: function() { - // Can't render until we know whether we own the file and if we have a local copy if (this.state.isMine === null || this.state.local === null || (this.props.hideOnRemove && this.state.removeConfirmed)) { return null; } - const obscureNsfw = !lbry.getClientSetting('showNsfw') && this.props.nsfw; + const obscureNsfw = !lbry.getClientSetting('showNsfw') && this.props.metadata.nsfw; let downloadLinkExtraProps = {}; if (this.state.fileInfo === null) {