Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fix: add required Discord section accessory
My Name is Tito51c81b79bca9
diff --git a/apps/web/__tests__/unit/homepage-seo.test.ts b/apps/web/__tests__/unit/homepage-seo.test.tsindex 225272af4..6974a5e41 100644--- a/apps/web/__tests__/unit/homepage-seo.test.ts+++ b/apps/web/__tests__/unit/homepage-seo.test.ts@@ -103,5 +103,14 @@ describe("homepage SEO", () => {expect(JSON.stringify(discordLinkPreview)).not.toContain("apple-touch-icon",);+ expect(discordLinkPreview.component.components[0]).toMatchObject({+ type: 9,+ accessory: {+ type: 2,+ style: 5,+ label: "Join our Discord",+ url: DISCORD_URL,+ },+ });});});diff --git a/apps/web/components/pages/HomeTwo/DiscordLinkPreview.tsx b/apps/web/components/pages/HomeTwo/DiscordLinkPreview.tsxindex bb9ad403c..96d1e148d 100644--- a/apps/web/components/pages/HomeTwo/DiscordLinkPreview.tsx+++ b/apps/web/components/pages/HomeTwo/DiscordLinkPreview.tsx@@ -15,22 +15,17 @@ export const discordLinkPreview = {"# Cap\nOpen-source screen recording for Mac, Windows, and Linux.",},],+ accessory: {+ type: 2,+ style: 5,+ label: "Join our Discord",+ url: DISCORD_URL,+ },},{type: 12,items: [{ media: { url: homepageOgImageUrl } }],},- {- type: 1,- components: [- {- type: 2,- style: 5,- label: "Join our Discord",- url: DISCORD_URL,- },- ],- },],},} as const;