tangled
alpha
login
or
join now
stream.place
/
streamplace
Live video on the AT Protocol
74
fork
atom
overview
issues
1
pulls
pipelines
check for canonicalurl instead of expecting it to be there
Natalie B.
5 months ago
bfca2e02
bcf754c0
+7
-1
1 changed file
expand all
collapse all
unified
split
pkg
director
stream_session.go
+7
-1
pkg/director/stream_session.go
···
300
return fmt.Errorf("livestream is not a streamplace livestream")
301
}
302
0
0
0
0
0
0
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
},