diff --git a/src/renderer/component/fileTile/view.jsx b/src/renderer/component/fileTile/view.jsx index 60d4fc202..f7945ed75 100644 --- a/src/renderer/component/fileTile/view.jsx +++ b/src/renderer/component/fileTile/view.jsx @@ -27,6 +27,7 @@ type Props = { clearPublish: () => void, updatePublishForm: ({}) => void, hideNoResult: boolean, // don't show the tile if there is no claim at this uri + displayHiddenMessage?: boolean, }; class FileTile extends React.PureComponent { @@ -62,11 +63,18 @@ class FileTile extends React.PureComponent { clearPublish, updatePublishForm, hideNoResult, + displayHiddenMessage, } = this.props; const shouldHide = !claimIsMine && obscureNsfw && metadata && metadata.nsfw; if (shouldHide) { - return null; + return displayHiddenMessage ? ( + + {__('This file is hidden because it is marked NSFW. Update your')}{' '} +