From 86a2de84f26b7f91d33e8598d3c81c1325301f7b Mon Sep 17 00:00:00 2001 From: Mary Kate Fain Date: Sat, 21 Jun 2025 15:03:29 -0500 Subject: [PATCH] set default for approved-only mode to true --- src/components/groups/PostList.tsx | 2 +- src/pages/GroupDetail.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/groups/PostList.tsx b/src/components/groups/PostList.tsx index c2bd0e6e..e8b06fb2 100644 --- a/src/components/groups/PostList.tsx +++ b/src/components/groups/PostList.tsx @@ -87,7 +87,7 @@ interface PostListProps { onPostCountChange?: (count: number) => void; // New prop for tracking post count } -export function PostList({ communityId, showOnlyApproved = false, pendingOnly = false, onPostCountChange }: PostListProps) { +export function PostList({ communityId, showOnlyApproved = true, pendingOnly = false, onPostCountChange }: PostListProps) { const { nostr } = useNostr(); const { user } = useCurrentUser(); const { bannedUsers } = useBannedUsers(communityId); diff --git a/src/pages/GroupDetail.tsx b/src/pages/GroupDetail.tsx index 95c5b47b..acdc8529 100644 --- a/src/pages/GroupDetail.tsx +++ b/src/pages/GroupDetail.tsx @@ -58,7 +58,7 @@ export default function GroupDetail() { const { mutateAsync: publishEvent } = useNostrPublish(); const queryClient = useQueryClient(); const [parsedId, setParsedId] = useState<{ kind: number; pubkey: string; identifier: string } | null>(null); - const [showOnlyApproved, setShowOnlyApproved] = useState(false); + const [showOnlyApproved, setShowOnlyApproved] = useState(true); const [currentPostCount, setCurrentPostCount] = useState(0); const [activeTab, setActiveTab] = useState("posts"); const [imageLoading, setImageLoading] = useState(true);