Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix: use only OG image in Discord preview

My Name is Tito9f2138954050
diff --git a/apps/web/__tests__/unit/homepage-seo.test.ts b/apps/web/__tests__/unit/homepage-seo.test.ts
index 0ecabe9c9..225272af4 100644
--- a/apps/web/__tests__/unit/homepage-seo.test.ts
+++ b/apps/web/__tests__/unit/homepage-seo.test.ts
@@ -100,5 +100,8 @@ describe("homepage SEO", () => {
expect(JSON.stringify(discordLinkPreview)).toContain("Join our Discord");
expect(JSON.stringify(discordLinkPreview)).toContain(DISCORD_URL);
expect(JSON.stringify(discordLinkPreview)).toContain(homepageOgImageUrl);
+ expect(JSON.stringify(discordLinkPreview)).not.toContain(
+ "apple-touch-icon",
+ );
});
});
diff --git a/apps/web/components/pages/HomeTwo/DiscordLinkPreview.tsx b/apps/web/components/pages/HomeTwo/DiscordLinkPreview.tsx
index a3e01c103..bb9ad403c 100644
--- a/apps/web/components/pages/HomeTwo/DiscordLinkPreview.tsx
+++ b/apps/web/components/pages/HomeTwo/DiscordLinkPreview.tsx
@@ -15,10 +15,6 @@ export const discordLinkPreview = {
"# Cap\nOpen-source screen recording for Mac, Windows, and Linux.",
},
],
- accessory: {
- type: 11,
- media: { url: "https://cap.so/apple-touch-icon.png" },
- },
},
{
type: 12,