diff options
Diffstat (limited to 'server/models')
-rw-r--r-- | server/models/video/video.ts | 7 |
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, |