diff --git a/lib/routes/bsky/posts.ts b/lib/routes/bsky/posts.ts index 3b8e67da7..959fb3378 100644 --- a/lib/routes/bsky/posts.ts +++ b/lib/routes/bsky/posts.ts @@ -62,8 +62,8 @@ async function handler(ctx) { description: art(path.join(__dirname, 'templates/post.art'), { text: post.record.text.replaceAll('\n', '
'), embed: post.embed, - // embed.$type "app.bsky.embed.record#view" and "app.bsky.embed.recordWithMedia#view" - // are not handled + // embed.$type "app.bsky.embed.record#view" and "app.bsky.embed.recordWithMedia#view" are not handled + // "app.bsky.embed.video#view" is rendered as image }), author: post.author.displayName, pubDate: parseDate(post.record.createdAt), diff --git a/lib/routes/bsky/templates/post.art b/lib/routes/bsky/templates/post.art index 06b42960a..54edbfc88 100644 --- a/lib/routes/bsky/templates/post.art +++ b/lib/routes/bsky/templates/post.art @@ -3,11 +3,13 @@ {{ /if }} {{ if embed }} - {{ if embed.$type == 'app.bsky.embed.images#view'}} + {{ if embed.$type === 'app.bsky.embed.images#view' }} {{ each embed.images i }} {{ i.alt }}
{{ /each }} - {{ else if embed.$type == 'app.bsky.embed.external#view' }} + {{ else if embed.$type === 'app.bsky.embed.video#view' }} +
+ {{ else if embed.$type === 'app.bsky.embed.external#view' }} {{ embed.external.title }}
{{ embed.external.description }}