Add associatedRecord to external embeds, if available (#10445)

This commit is contained in:
Eric Bailey
2026-05-07 19:08:29 -05:00
committed by GitHub
parent 9a2cabf64c
commit fa8c2224b7
6 changed files with 24 additions and 11 deletions
+6
View File
@@ -22,6 +22,11 @@ export interface LinkMeta {
title?: string
description?: string
image?: string
/**
* The AT-URI of the Atmosphere record representing this external content, if
* it exists. Example: a site.standard.document record.
*/
associatedRecord?: string
}
export async function getLinkMeta(
@@ -89,6 +94,7 @@ export async function getLinkMeta(
meta.description = body.description
meta.image = body.image
meta.title = body.title
meta.associatedRecord = body.associated_record
if (shouldFollowRedirect) {
meta.url = body.url
}