The link preview I never looked at
My first federated note showed a purple gradient instead of my site. That small embarrassment turned into a quick lesson in how Ghost handles link previews.
The first note, the wrong card
My first federated note with a link to my homepage showed up on Mastodon with a link card that looked nothing like my site. Instead of something that matched the design, it was a purple-pink gradient with my name twice on it.
Nothing was technically broken. The link worked. The text was fine. It just looked like a generic placeholder that had slipped through the cracks. And it had.
Ghost splits social cards in two
The problem started in Ghost. In the settings, Ghost treats the X (Twitter) card and the Facebook card as separate things. That is not just a label difference. The Facebook card controls the og:image field in the page metadata.
That og:image field is what a lot of other places read when they build a link preview, including Mastodon, Bluesky, and many chat apps.
If you only set the X card and ignore the Facebook card, you end up with a mismatch. The card you think you configured is not the card most of the social web is actually using.
What Mastodon actually saw
On my site, the Facebook card image was still the default: a generic gradient with my name. So when I posted the link on Mastodon, it looked up og:image, found that gradient, and turned it into a card.
I wrote about this earlier in The year my Ghost site never reached the fediverse.
From Mastodon's perspective, nothing was wrong. From a design perspective, it looked like a half-finished project.
Fixing the source image
The fix lived in Ghost, not in Mastodon. I updated the Facebook card in Ghost and gave it an image that actually belongs on the site: a photo that is 1200 pixels wide.
That image now feeds into og:image. Mastodon, Bluesky, and chat apps that read Open Graph data see that new image instead of the placeholder gradient.
The caching surprise
Updating the card in Ghost does not rewrite history. Mastodon caches link previews. That first note with the purple-pink gradient keeps its original card.
New notes with the same URL can pick up the updated image, but the old one is basically frozen with whatever Mastodon grabbed the first time.
More on this in my article Writing Decisions for a Future AI Assistant.
The invisible design surface
This is the part that matters for frontend work: a link preview is a design surface you almost never see yourself.
You paste your own links less than other people do. You are usually looking at your site directly, not at how it appears in someone else's feed or chat. That makes link previews easy to skip when you are setting up a new site or theme.
If you care about how your site looks, the preview card is part of that look, and it lives in a place you do not normally check.
A quick checklist for Ghost
If you are using Ghost and you want your link cards to make sense on the federated social web and in chat apps, a short setup pass helps:
- Set the X card, but do not stop there.
- Set the Facebook card with an image that fits your site, at around 1200 pixels wide.
- Remember that the Facebook card controls
og:image, which many other platforms read. - Post a test link on Mastodon or another platform and see what shows up.
The main thing is to avoid shipping the default gradient to every feed your site touches.
Read also Upgrading three Tailwind projects to v4 in one sprint.
Designing for everywhere else
The small lesson from that first federated note: your site does not only exist in the browser tab you are staring at. It also exists as a 1200-pixel-wide rectangle inside someone else's app, controlled by a field you might have skipped.
That rectangle is not the most important part of your site, but it is often the first one people see. It is worth making sure it is yours, not a leftover placeholder.