Merge branch 'release/2.1.0' into develop
This commit is contained in:
commit
7cd1b12c19
|
@ -269,7 +269,15 @@ function videoModelToActivityPubObject (video: MVideoAP): VideoTorrentObject {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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 || [])
|
addVideoFilesInAPAcc(url, video, baseUrlHttp, baseUrlWs, video.VideoFiles || [])
|
||||||
|
|
||||||
for (const playlist of (video.VideoStreamingPlaylists || [])) {
|
for (const playlist of (video.VideoStreamingPlaylists || [])) {
|
||||||
|
@ -293,13 +301,6 @@ function videoModelToActivityPubObject (video: MVideoAP): VideoTorrentObject {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add video url too
|
|
||||||
url.push({
|
|
||||||
type: 'Link',
|
|
||||||
mediaType: 'text/html',
|
|
||||||
href: WEBSERVER.URL + '/videos/watch/' + video.uuid
|
|
||||||
})
|
|
||||||
|
|
||||||
const subtitleLanguage = []
|
const subtitleLanguage = []
|
||||||
for (const caption of video.VideoCaptions) {
|
for (const caption of video.VideoCaptions) {
|
||||||
subtitleLanguage.push({
|
subtitleLanguage.push({
|
||||||
|
|
Loading…
Reference in New Issue
Block a user