From 165cdc75bf1942ed687f78094c2bd366839a7c99 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 29 Nov 2017 11:34:44 +0100 Subject: Fix well known and json parser with mastodon --- server/models/video/video.ts | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'server/models/video') 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) { }) } + // Add video url too + url.push({ + type: 'Link', + mimeType: 'text/html', + url: CONFIG.WEBSERVER.URL + '/videos/watch/' + this.uuid + }) + const videoObject: VideoTorrentObject = { type: 'Video' as 'Video', id: this.url, -- cgit v1.2.3