}
}
- const url: ActivityUrlObject[] = []
+ const url: ActivityUrlObject[] = [
+ // HTML url should be the first element in the array so Mastodon correctly displays the embed
+ {
+ type: 'Link',
+ mediaType: 'text/html',
+ href: WEBSERVER.URL + '/videos/watch/' + video.uuid
+ }
+ ]
+
addVideoFilesInAPAcc(url, video, baseUrlHttp, baseUrlWs, video.VideoFiles || [])
for (const playlist of (video.VideoStreamingPlaylists || [])) {
})
}
- // Add video url too
- url.push({
- type: 'Link',
- mediaType: 'text/html',
- href: WEBSERVER.URL + '/videos/watch/' + video.uuid
- })
-
const subtitleLanguage = []
for (const caption of video.VideoCaptions) {
subtitleLanguage.push({