Filter NSFW featured content on Discover page

This commit is contained in:
Alex Liebowitz 2016-08-21 01:02:33 -04:00 committed by Jeremy Kauffman
parent 124b2b9a18
commit 399fb5c7c8

View file

@ -152,8 +152,8 @@ var FeaturedContentItem = React.createClass({
},
render: function() {
if (this.state.metadata == null) {
// Still waiting for metadata
if (this.state.metadata == null || this.state.metadata.nsfw) {
// Still waiting for metadata, or item is NSFW
return null;
}