Skip to content

Commit

Permalink
enhancement: Add more pages to no-index
Browse files Browse the repository at this point in the history
  • Loading branch information
Betree committed Jan 2, 2023
1 parent da5f3bb commit 71991de
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
1 change: 1 addition & 0 deletions app/components/Users/User.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export default class User extends React.PureComponent {
<div className="user-page">
<Helmet>
<title>{user.name || prettyUsername}</title>
<meta name="robots" content="noindex" />
</Helmet>
<section className="hero is-light is-bold is-medium user-header">
{user.id !== 0 && (
Expand Down
2 changes: 1 addition & 1 deletion app/components/Users/UserAppellation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const UserAppellation = ({
const prettyUsername = user ? `@${user.username}` : t('deletedAccount')
const hasLink = user && !withoutActions
const Component = hasLink ? Link : defaultComponent
const componentProps = hasLink ? { to: `/u/${user.username}` } : {}
const componentProps = hasLink ? { to: `/u/${user.username}`, rel: 'nofollow' } : {}
const className = classNames('user-appellation', { deleted: !user })

if (compact) {
Expand Down
14 changes: 10 additions & 4 deletions app/components/VideoDebate/VideoDebateHistory.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
} from '../../state/video_debate/history/effects'
import { reset } from '../../state/user_actions/reducer'
import ActionsTable from '../UsersActions/ActionsTable'
import { Helmet } from 'react-helmet'

@connect(
(state) => ({
Expand All @@ -30,10 +31,15 @@ export default class VideoDebateHistory extends React.PureComponent {
const { isLoading, error, actions } = this.props

return (
<div className="videodebate-actions-history">
{error && error}
<ActionsTable actions={actions} isLoading={isLoading} />
</div>
<React.Fragment>
<Helmet>
<meta name="robots" content="noindex" />
</Helmet>
<div className="videodebate-actions-history">
{error && error}
<ActionsTable actions={actions} isLoading={isLoading} />
</div>
</React.Fragment>
)
}
}

0 comments on commit 71991de

Please sign in to comment.