Require at least 2 follows to show a community (or show it if you are the curator)

This commit is contained in:
James Grugett 2022-02-07 20:56:25 -06:00
parent faa49b750e
commit 2b5a0b1111

View File

@ -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 <Custom404 />