Live video on the AT Protocol

check for canonicalurl instead of expecting it to be there

+7 -1
+7 -1
pkg/director/stream_session.go
··· 300 return fmt.Errorf("livestream is not a streamplace livestream") 301 } 302 303 actorStatusEmbed := bsky.ActorStatus_Embed{ 304 EmbedExternal: &bsky.EmbedExternal{ 305 External: &bsky.EmbedExternal_External{ 306 Title: lsr.Title, 307 - Uri: *lsr.CanonicalUrl, 308 Description: fmt.Sprintf("@%s is 🔴LIVE on %s", repo.Handle, ss.cli.PublicHost), 309 Thumb: thumb, 310 },
··· 300 return fmt.Errorf("livestream is not a streamplace livestream") 301 } 302 303 + canonicalUrl := fmt.Sprintf("https://%s/%s", ss.cli.PublicHost, repo.Handle) 304 + 305 + if lsr.CanonicalUrl != nil { 306 + canonicalUrl = *lsr.CanonicalUrl 307 + } 308 + 309 actorStatusEmbed := bsky.ActorStatus_Embed{ 310 EmbedExternal: &bsky.EmbedExternal{ 311 External: &bsky.EmbedExternal_External{ 312 Title: lsr.Title, 313 + Uri: canonicalUrl, 314 Description: fmt.Sprintf("@%s is 🔴LIVE on %s", repo.Handle, ss.cli.PublicHost), 315 Thumb: thumb, 316 },