~cytrogen/masto-fe

b3f209370bfbf78dd2e21a36b145a5cce0005f2b — Eugen Rochko 2 years ago c624680
[Glitch] Add canonical link tags in web UI

Port 000b8358034106c63fc69f4deeac8a6fb7b51f92 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
M app/javascript/flavours/glitch/features/account/components/header.jsx => app/javascript/flavours/glitch/features/account/components/header.jsx +1 -0
@@ 398,6 398,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/flavours/glitch/features/status/index.jsx => app/javascript/flavours/glitch/features/status/index.jsx +1 -0
@@ 754,6 754,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>
    );