Prefer opengraph image, fall back to Standard Site coverImage
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
}}
|
||||
/>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user