Mirror of https://github.com/improsocial/impro An extensible Bluesky client for web impro.social
6

Configure Feed

Select the types of activity you want to include in your feed.

Pass post record embeds through to template

Grace Kind (Jul 15, 2026, 7:46 PM -0500) 7949b5ed bfb544fd

+4 -7
+1 -1
package.json
··· 1 1 { 2 2 "name": "impro", 3 - "version": "0.17.170", 3 + "version": "0.17.171", 4 4 "type": "module", 5 5 "scripts": { 6 6 "start": "rm -rf \"${BUILD_DIR:-build}\" && NODE_ENV=development eleventy --serve",
+3 -2
src/js/templates/largePost.template.js
··· 121 121 ) { 122 122 return unavailablePostTemplate(); 123 123 } 124 + const embed = post.embed ?? post.record?.embed; 124 125 const postText = post.record.text || ""; 125 126 const badgeLabels = post.badgeLabels ?? []; 126 127 const contentLabel = post.contentLabel; ··· 165 166 ></plugin-rich-text> 166 167 </div>` 167 168 : ""} 168 - ${post.embed 169 + ${embed 169 170 ? html`<div class="post-embed"> 170 171 ${postEmbedTemplate({ 171 - embed: post.embed, 172 + embed, 172 173 mediaLabel: post.mediaLabel, 173 174 isAuthenticated, 174 175 pluginService,
-4
src/js/templates/postEmbed.template.js
··· 647 647 export function postEmbedTemplate({ 648 648 embed, 649 649 mediaLabel, 650 - enabledEmbedTypes, 651 650 lazyLoadImages = false, 652 651 isAuthenticated, 653 652 currentConvoId = null, 654 653 pluginService, 655 654 }) { 656 - if (enabledEmbedTypes && !enabledEmbedTypes.includes(embed.$type)) { 657 - return null; 658 - } 659 655 switch (embed.$type) { 660 656 case "app.bsky.embed.record#view": 661 657 return recordEmbedTemplate({