a tool for shared writing and social publishing
0
fork

Configure Feed

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

add record with media support to embeds

+13 -3
+13 -3
components/Blocks/BlueskyPostBlock/BlueskyEmbed.tsx
··· 174 174 return <SeePostOnBluesky postUrl={props.postUrl} />; 175 175 176 176 // I am not sure when this case will be used? so I'm commenting it out for now 177 - // case AppBskyEmbedRecordWithMedia.isView(props.embed): 178 - // const recordWithMediaEmbed = props.embed; 179 - // return <div>This is a record with Media </div>; 177 + case AppBskyEmbedRecordWithMedia.isView(props.embed) && 178 + AppBskyEmbedRecord.isViewRecord(props.embed.record.record): 179 + return ( 180 + <div className={`flex flex-col gap-2`}> 181 + <BlueskyEmbed embed={props.embed.media} /> 182 + <BlueskyEmbed 183 + embed={{ 184 + $type: "app.bsky.embed.record#view", 185 + record: props.embed.record.record, 186 + }} 187 + /> 188 + </div> 189 + ); 180 190 181 191 default: 182 192 return <SeePostOnBluesky postUrl={props.postUrl} />;