Skip to content

Commit a726453

Browse files
authored
Merge pull request #416 from andotherstuff/approval
Set default for approved-only mode to true
2 parents 10ef3a1 + 86a2de8 commit a726453

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/groups/PostList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ interface PostListProps {
8787
onPostCountChange?: (count: number) => void; // New prop for tracking post count
8888
}
8989

90-
export function PostList({ communityId, showOnlyApproved = false, pendingOnly = false, onPostCountChange }: PostListProps) {
90+
export function PostList({ communityId, showOnlyApproved = true, pendingOnly = false, onPostCountChange }: PostListProps) {
9191
const { nostr } = useNostr();
9292
const { user } = useCurrentUser();
9393
const { bannedUsers } = useBannedUsers(communityId);

src/pages/GroupDetail.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export default function GroupDetail() {
5858
const { mutateAsync: publishEvent } = useNostrPublish();
5959
const queryClient = useQueryClient();
6060
const [parsedId, setParsedId] = useState<{ kind: number; pubkey: string; identifier: string } | null>(null);
61-
const [showOnlyApproved, setShowOnlyApproved] = useState(false);
61+
const [showOnlyApproved, setShowOnlyApproved] = useState(true);
6262
const [currentPostCount, setCurrentPostCount] = useState(0);
6363
const [activeTab, setActiveTab] = useState("posts");
6464
const [imageLoading, setImageLoading] = useState(true);

0 commit comments

Comments
 (0)