Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions apps/site/app/[locale]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,6 @@ const RootLayout: FC<RootLayoutProps> = async ({ children, params }) => {
</ThemeProvider>
</NextIntlClientProvider>

<a
rel="me"
aria-hidden="true"
className="hidden"
href="https://social.lfx.dev/@nodejs"
/>

{VERCEL_ENV && (
<>
<Analytics />
Expand Down
5 changes: 0 additions & 5 deletions apps/site/navigation.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,6 @@
"link": "https://discord.gg/nodejs",
"alt": "Discord"
},
{
"icon": "mastodon",
"link": "https://social.lfx.dev/@nodejs",
"alt": "Mastodon"
},
{
"icon": "bluesky",
"link": "https://bsky.app/profile/nodejs.org",
Expand Down
25 changes: 25 additions & 0 deletions apps/site/util/__tests__/navigation.test.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import assert from 'node:assert/strict';
import { readFile } from 'node:fs/promises';
import { describe, it } from 'node:test';

import navigation from '../../navigation.json' with { type: 'json' };

describe('navigation config', () => {
it('does not expose the retired Mastodon account', () => {
assert.equal(
navigation.socialLinks.some(
({ link }) => link === 'https://social.lfx.dev/@nodejs'
),
false
);
});

it('does not keep the retired Mastodon profile in the root layout', async () => {
const layout = await readFile(
new URL('../../app/[locale]/layout.tsx', import.meta.url),
'utf8'
);

assert.equal(layout.includes('https://social.lfx.dev/@nodejs'), false);
});
});
Loading