Fix nsfw check in FileTile

This commit is contained in:
Alex Liebowitz 2017-01-11 02:45:23 -05:00
parent 8d3e585306
commit e1ec3bb979

View file

@ -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) {