From 5d210961c19e6a93c7382b28a75c11394ca4f85d Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Fri, 25 Sep 2020 14:41:40 +0100 Subject: [PATCH] apply mature filter to Editor's Choice --- .../ui/findcontent/EditorsChoiceFragment.java | 3 ++- .../io/lbry/browser/utils/Predefined.java | 23 ++++++++++++++++++- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/lbry/browser/ui/findcontent/EditorsChoiceFragment.java b/app/src/main/java/io/lbry/browser/ui/findcontent/EditorsChoiceFragment.java index cd8dd19e..2a041e11 100644 --- a/app/src/main/java/io/lbry/browser/ui/findcontent/EditorsChoiceFragment.java +++ b/app/src/main/java/io/lbry/browser/ui/findcontent/EditorsChoiceFragment.java @@ -32,6 +32,7 @@ import io.lbry.browser.ui.BaseFragment; import io.lbry.browser.utils.Helper; import io.lbry.browser.utils.Lbry; import io.lbry.browser.utils.LbryAnalytics; +import io.lbry.browser.utils.Predefined; public class EditorsChoiceFragment extends BaseFragment { @@ -72,7 +73,7 @@ public class EditorsChoiceFragment extends BaseFragment { return Lbry.buildClaimSearchOptions( Claim.TYPE_REPOST, null, - null, /*canShowMatureContent ? null : new ArrayList<>(Predefined.MATURE_TAGS),*/ + canShowMatureContent ? null : new ArrayList<>(Predefined.MATURE_TAGS), new ArrayList<>(titleChannelIdsMap.values()), null, Arrays.asList(Claim.ORDER_BY_RELEASE_TIME), diff --git a/app/src/main/java/io/lbry/browser/utils/Predefined.java b/app/src/main/java/io/lbry/browser/utils/Predefined.java index 48d8ec4e..167c36b2 100644 --- a/app/src/main/java/io/lbry/browser/utils/Predefined.java +++ b/app/src/main/java/io/lbry/browser/utils/Predefined.java @@ -493,7 +493,28 @@ public final class Predefined { "covidcuts", "covid-19" ); - public static final List MATURE_TAGS = Arrays.asList("mature", "nsfw", "porn", "xxx"); + public static final List MATURE_TAGS = Arrays.asList( + "porn", + "porno", + "nsfw", + "mature", + "xxx", + "sex", + "creampie", + "blowjob", + "handjob", + "vagina", + "boobs", + "big boobs", + "big dick", + "pussy", + "cumshot", + "anal", + "hard fucking", + "ass", + "fuck", + "hentai" + ); public static final List ADJECTIVES = Arrays.asList( "aback", "abaft",