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 300 return fmt.Errorf("livestream is not a streamplace livestream") 301 301 } 302 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 + 303 309 actorStatusEmbed := bsky.ActorStatus_Embed{ 304 310 EmbedExternal: &bsky.EmbedExternal{ 305 311 External: &bsky.EmbedExternal_External{ 306 312 Title: lsr.Title, 307 - Uri: *lsr.CanonicalUrl, 313 + Uri: canonicalUrl, 308 314 Description: fmt.Sprintf("@%s is 🔴LIVE on %s", repo.Handle, ss.cli.PublicHost), 309 315 Thumb: thumb, 310 316 },