diff --git a/src/components/articles/DiscussionCard.tsx b/src/components/articles/DiscussionCard.tsx index e43a3b20..af740fe7 100644 --- a/src/components/articles/DiscussionCard.tsx +++ b/src/components/articles/DiscussionCard.tsx @@ -190,7 +190,7 @@ const DiscussionCard: React.FC = ({ // Check if user can resolve/unresolve (admin or discussion author) const canResolve = isCommunityArticle && (isAdmin || discussion.is_author); - const canEditDiscussion = !!discussion.is_author; + const canEditDiscussion = !!discussion.is_author && !discussion.deleted_at; const shouldShowActions = (canResolve || canEditDiscussion) && !isEditing; const { mutate: toggleResolved, isPending: isToggling } = diff --git a/src/components/articles/ReviewCard.tsx b/src/components/articles/ReviewCard.tsx index 611036af..9d9cba22 100644 --- a/src/components/articles/ReviewCard.tsx +++ b/src/components/articles/ReviewCard.tsx @@ -168,7 +168,7 @@ const ReviewCard: FC = ({ review, refetch }) => {
{review.user.username} - {review.is_author && ( + {review.is_author && !review.deleted_at && ( <> (You) {/* Fixed by Codex on 2026-02-15 diff --git a/src/components/common/NavBar.tsx b/src/components/common/NavBar.tsx index 8b06e079..e7353766 100644 --- a/src/components/common/NavBar.tsx +++ b/src/components/common/NavBar.tsx @@ -225,11 +225,6 @@ const NavBar: React.FC = () => {