A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
TypeScript agent-skillsaidsh-pluginhacktoberfestjavascriptmcp-serverreactresume-builderself-hostedtypescript
fix(sharing): use neutral social preview image (#3410)
Amruth Pillai0878b256a94f
diff --git a/apps/server/src/static/web.test.ts b/apps/server/src/static/web.test.tsindex 86a4f1cb0..e4df86e91 100644--- a/apps/server/src/static/web.test.ts+++ b/apps/server/src/static/web.test.ts@@ -151,9 +151,9 @@ describe("web app fallback classification", () => {expect(html).toContain('<link rel="canonical" href="https://rxresu.me/jane/resume">');expect(html).toContain('<meta property="og:type" content="profile">');expect(html).toContain('<meta property="og:title" content="Jane Doe — Staff Engineer">');- expect(html).toContain('<meta property="og:image" content="https://rxresu.me/templates/jpg/azurill.jpg">');+ expect(html).toContain('<meta property="og:image" content="https://rxresu.me/opengraph/banner.jpg">');expect(html).toContain('<meta name="twitter:card" content="summary_large_image">');- expect(html).toContain('<meta name="twitter:image" content="https://rxresu.me/templates/jpg/azurill.jpg">');+ expect(html).toContain('<meta name="twitter:image" content="https://rxresu.me/opengraph/banner.jpg">');});it("escapes user-authored values so resume content cannot break out of the attribute", async () => {diff --git a/apps/server/src/static/web.ts b/apps/server/src/static/web.tsindex 52485bb16..ce90774d5 100644--- a/apps/server/src/static/web.ts+++ b/apps/server/src/static/web.ts@@ -224,7 +224,7 @@ async function createPublicResumeSeoMarkup(pathname: string, origin: string) {if (!meta) return null;const canonicalUrl = `${origin}/${username}/${slug}`;- const imageUrl = `${origin}/templates/jpg/${meta.template}.jpg`;+ const imageUrl = `${origin}/opengraph/banner.jpg`;const pageTitle = escapeAttribute(`${meta.name} - Reactive Resume`);const title = escapeAttribute(meta.title);const description = escapeAttribute(meta.description);diff --git a/apps/web/src/routes/$username/$slug.tsx b/apps/web/src/routes/$username/$slug.tsxindex a4b677364..f1b952302 100644--- a/apps/web/src/routes/$username/$slug.tsx+++ b/apps/web/src/routes/$username/$slug.tsx@@ -30,7 +30,7 @@ export const Route = createFileRoute("/$username/$slug")({const base = getCanonicalRootUrl(typeof window === "undefined" ? undefined : window.location.origin);const canonicalUrl = `${base}${params.username}/${params.slug}`;- const imageUrl = `${base}templates/jpg/${social.template}.jpg`;+ const imageUrl = `${base}opengraph/banner.jpg`;return {meta: [