Skip to content

Commit bd19aa6

Browse files
committed
Fix: update SEO logic to handle disabled or member-only profiles
1 parent 797e125 commit bd19aa6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎web/pages/[username]/index.tsx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,10 @@ function UserPageInner(props: ActiveUserPageProps) {
307307
url={`/${user.username}`}
308308
image={seoImage}
309309
/>
310-
{(user.isBannedFromPosting || user.userDeleted) && (
310+
{(user.isBannedFromPosting ||
311+
user.userDeleted ||
312+
profile?.disabled ||
313+
profile?.visibility === 'member') && (
311314
<Head>
312315
<meta name="robots" content="noindex, nofollow" />
313316
</Head>

0 commit comments

Comments
 (0)