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