Skip to content

Commit

Permalink
Add more + twitter theme
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewStanciu committed Jul 3, 2023
1 parent 0408de2 commit 941418a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/og/[username]/status/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export async function generateMetadata({
photos.map((photo) => photoUrls.push(photo.url));

return {
themeColor: "#1ca0f2",
openGraph: {
title: `${user.name} on Twitter`,
siteName: "Twitter",
Expand All @@ -33,6 +34,11 @@ export async function generateMetadata({
videos: video ? [video.variants[1].src] : undefined,
},
twitter: {
title: `${user.name} on Twitter`,
site: user.screen_name,
description: text,
creator: user.screen_name,
images: photoUrls,
card: "summary_large_image",
},
};
Expand Down

0 comments on commit 941418a

Please sign in to comment.