Fix nsfw check in FileTile
This commit is contained in:
parent
8d3e585306
commit
e1ec3bb979
1 changed files with 1 additions and 2 deletions
|
@ -128,13 +128,12 @@ let FileTile = React.createClass({
|
||||||
this._isMounted = false;
|
this._isMounted = false;
|
||||||
},
|
},
|
||||||
render: function() {
|
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 ||
|
if (this.state.isMine === null || this.state.local === null ||
|
||||||
(this.props.hideOnRemove && this.state.removeConfirmed)) {
|
(this.props.hideOnRemove && this.state.removeConfirmed)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const obscureNsfw = !lbry.getClientSetting('showNsfw') && this.props.nsfw;
|
const obscureNsfw = !lbry.getClientSetting('showNsfw') && this.props.metadata.nsfw;
|
||||||
|
|
||||||
let downloadLinkExtraProps = {};
|
let downloadLinkExtraProps = {};
|
||||||
if (this.state.fileInfo === null) {
|
if (this.state.fileInfo === null) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue