Skip to content
Merged
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
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/* eslint-disable @next/next/no-img-element */
import { getThirdwebClient } from "@/constants/thirdweb.server";
import { ImageResponse } from "next/og";
import { isAddress } from "thirdweb";
import { download } from "thirdweb/storage";
import { shortenAddress } from "thirdweb/utils";

const OgBrandIcon: React.FC = () => (
// biome-ignore lint/a11y/noSvgWithoutTitle: not needed
Expand Down Expand Up @@ -255,7 +257,9 @@ export async function publishedContractOGImageTemplate(params: {
)}

<h2 tw="text-2xl text-white font-medium max-w-full">
{params.publisher}
{isAddress(params.publisher)
? shortenAddress(params.publisher)
: params.publisher}
</h2>
</div>
</div>
Expand Down
Loading