The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
patch broken tweet
Steven Tey45f047dc9ca4
diff --git a/app/dub.sh/metatags/launch.tsx b/app/dub.sh/metatags/launch.tsxindex d03dd5b7a9..11479d6813 100644--- a/app/dub.sh/metatags/launch.tsx+++ b/app/dub.sh/metatags/launch.tsx@@ -3,6 +3,7 @@ import { getTweet } from "#/lib/twitter/get-tweet";export default async function LaunchTweet() {const tweet = await getTweet("1595465648938930180");+ if (!tweet) return null;return (<div className="text-left"><Tweet key={tweet.id} metadata={JSON.stringify(tweet)} />diff --git a/app/ui/home/testimonials.tsx b/app/ui/home/testimonials.tsxindex 3c276553f7..76eb15b991 100644--- a/app/ui/home/testimonials.tsx+++ b/app/ui/home/testimonials.tsx@@ -33,7 +33,7 @@ export default async function Testimonials() {</div><TestimonialsMobile tweets={tweets} /><div className="hidden space-y-6 py-8 sm:block sm:columns-2 sm:gap-6 xl:columns-3">- {tweets.map((tweet, idx) => (+ {tweets.filter(Boolean).map((tweet, idx) => (<Tweetkey={idx}metadata={JSON.stringify(tweet)}