collection of golang services under the Red Dwarf umbrella server.reddwarf.app
bluesky reddwarf microcosm appview
15
fork

Configure Feed

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

PostView_Embed fix video crash part 2

+9 -7
+9 -7
shims/lex/app/bsky/feed/defs/embed.go
··· 163 163 if feedPost.Embed.EmbedRecordWithMedia.Media.EmbedVideo != nil { 164 164 videocdn := "https://video.bsky.app" // todo move this 165 165 embedVideo := EmbedVideoViewExtractor(ctx, aturi, feedPost.Embed.EmbedVideo, sl, cs, imgcdn, videocdn, viewer) 166 - embedmediaview = &appbsky.EmbedRecordWithMedia_View_Media{ 167 - // EmbedImages_View *EmbedImages_View 168 - // EmbedVideo_View *EmbedVideo_View 169 - EmbedVideo_View: embedVideo.EmbedVideo_View, 170 - // EmbedVideo_View: &appbsky.EmbedVideo_View{ 166 + if embedVideo != nil { 167 + embedmediaview = &appbsky.EmbedRecordWithMedia_View_Media{ 168 + // EmbedImages_View *EmbedImages_View 169 + // EmbedVideo_View *EmbedVideo_View 170 + EmbedVideo_View: embedVideo.EmbedVideo_View, 171 + // EmbedVideo_View: &appbsky.EmbedVideo_View{ 171 172 172 - // }, 173 - // EmbedExternal_View *EmbedExternal_View 173 + // }, 174 + // EmbedExternal_View *EmbedExternal_View 175 + } 174 176 } 175 177 // // video extractor 176 178 // embedmediaview = &appbsky.EmbedRecordWithMedia_View_Media{