✨ Add twitter card attr
This commit is contained in:
parent
5f1f965292
commit
87d728b022
@ -47,10 +47,11 @@ const attachments = await fetchAttachmentMeta(data.body.attachments)
|
|||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
twitter={{
|
twitter={{
|
||||||
|
card: "summary_large_image",
|
||||||
title: data.body?.title ? data.body.title : `Post #${data.id}`,
|
title: data.body?.title ? data.body.title : `Post #${data.id}`,
|
||||||
description: data.body?.content,
|
description: data.body?.content,
|
||||||
creator: "@"+data.publisher.name,
|
creator: "@"+data.publisher.name,
|
||||||
image: data.body?.thumbnail ? getAttachmentUrl(data.body.thumbnail) : getAttachmentUrl(attachments.find(a => a.mimetype.startsWith('image'))?.rid),
|
image: data.body?.thumbnail ? getAttachmentUrl(data.body.thumbnail) : getAttachmentUrl(attachments.find(a => a.mimetype.startsWith('image'))?.rid),
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</head>
|
</head>
|
||||||
|
Loading…
Reference in New Issue
Block a user