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);