mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-07-30 17:59:13 -04:00
Fix: update SEO logic to handle disabled or member-only profiles
This commit is contained in:
@@ -307,7 +307,10 @@ function UserPageInner(props: ActiveUserPageProps) {
|
||||
url={`/${user.username}`}
|
||||
image={seoImage}
|
||||
/>
|
||||
{(user.isBannedFromPosting || user.userDeleted) && (
|
||||
{(user.isBannedFromPosting ||
|
||||
user.userDeleted ||
|
||||
profile?.disabled ||
|
||||
profile?.visibility === 'member') && (
|
||||
<Head>
|
||||
<meta name="robots" content="noindex, nofollow" />
|
||||
</Head>
|
||||
|
||||
Reference in New Issue
Block a user