Prefer opengraph image, fall back to Standard Site coverImage

This commit is contained in:
Eric Bailey
2026-06-02 14:03:12 -05:00
parent 53fa6b2493
commit 10ca12443f
2 changed files with 6 additions and 1 deletions
+4
View File
@@ -246,6 +246,10 @@ async function resolveExternal(
title: result.title ?? '',
description: result.description ?? '',
thumb: result.image ? await imageToThumb(result.image) : undefined,
/*
* New fields from Standard Site integration. Other fields are derived from
* opengraph/oembed as before.
*/
associatedRefs: result.associatedRefs,
view: result.view,
}
+2 -1
View File
@@ -98,7 +98,8 @@ export const ExternalEmbedLink = ({
uri,
description:
data.view?.external?.description || data.description,
thumb: data.view?.external?.thumb || data.thumb?.source.path,
// prefer opengraph data to atproto record-derived image
thumb: data.thumb?.source.path || data.view?.external?.thumb,
}}
/>
)