aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-11-29 11:34:44 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-11-29 11:34:44 +0100
commit165cdc75bf1942ed687f78094c2bd366839a7c99 (patch)
tree4b174114bf175603202c3672c5dc04c22582701d /server/models/video
parent14063e965672ed724b7bfea6686acc14923e07a7 (diff)
downloadPeerTube-165cdc75bf1942ed687f78094c2bd366839a7c99.tar.gz
PeerTube-165cdc75bf1942ed687f78094c2bd366839a7c99.tar.zst
PeerTube-165cdc75bf1942ed687f78094c2bd366839a7c99.zip
Fix well known and json parser with mastodon
Diffstat (limited to 'server/models/video')
-rw-r--r--server/models/video/video.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index 3f416d04c..f3469c1de 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -616,6 +616,13 @@ toActivityPubObject = function (this: VideoInstance) {
616 }) 616 })
617 } 617 }
618 618
619 // Add video url too
620 url.push({
621 type: 'Link',
622 mimeType: 'text/html',
623 url: CONFIG.WEBSERVER.URL + '/videos/watch/' + this.uuid
624 })
625
619 const videoObject: VideoTorrentObject = { 626 const videoObject: VideoTorrentObject = {
620 type: 'Video' as 'Video', 627 type: 'Video' as 'Video',
621 id: this.url, 628 id: this.url,