~cytrogen/masto-fe

000b8358034106c63fc69f4deeac8a6fb7b51f92 — Eugen Rochko 2 years ago b7910bc
Add canonical link tags in web UI (#25715)

M app/javascript/mastodon/features/account/components/header.jsx => app/javascript/mastodon/features/account/components/header.jsx +1 -0
@@ 476,6 476,7 @@ class Header extends ImmutablePureComponent {
        <Helmet>
          <title>{titleFromAccount(account)}</title>
          <meta name='robots' content={(isLocal && isIndexable) ? 'all' : 'noindex'} />
          <link rel='canonical' href={account.get('url')} />
        </Helmet>
      </div>
    );

M app/javascript/mastodon/features/status/index.jsx => app/javascript/mastodon/features/status/index.jsx +1 -0
@@ 713,6 713,7 @@ class Status extends ImmutablePureComponent {
        <Helmet>
          <title>{titleFromStatus(intl, status)}</title>
          <meta name='robots' content={(isLocal && isIndexable) ? 'all' : 'noindex'} />
          <link rel='canonical' href={status.get('url')} />
        </Helmet>
      </Column>
    );