From 2b5a0b111193e7f60f80485d5643af3118f15e54 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Mon, 7 Feb 2022 20:56:25 -0600 Subject: [PATCH] Require at least 2 follows to show a community (or show it if you are the curator) --- web/pages/[username]/[contractSlug].tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/pages/[username]/[contractSlug].tsx b/web/pages/[username]/[contractSlug].tsx index f239253d..8af285d7 100644 --- a/web/pages/[username]/[contractSlug].tsx +++ b/web/pages/[username]/[contractSlug].tsx @@ -74,7 +74,9 @@ export default function ContractPage(props: { const contract = useContractWithPreload(props.slug, props.contract) const { bets, comments } = props - const folds = useFoldsWithTags(contract?.tags) ?? props.folds + const folds = (useFoldsWithTags(contract?.tags) ?? props.folds).filter( + (fold) => fold.followCount > 1 || user?.id === fold.curatorId + ) if (!contract) { return