diff options
author | Chocobozzz <me@florianbigard.com> | 2021-10-22 14:11:58 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-10-22 14:11:58 +0200 |
commit | ab4001aade0891b70e456a215ced0f825c57fde8 (patch) | |
tree | 1690f4eecdef3f9a41c6b330852995774638eb23 /server | |
parent | de7f11143f6d8a617f1eb15d536a3486e7e22301 (diff) | |
download | PeerTube-ab4001aade0891b70e456a215ced0f825c57fde8.tar.gz PeerTube-ab4001aade0891b70e456a215ced0f825c57fde8.tar.zst PeerTube-ab4001aade0891b70e456a215ced0f825c57fde8.zip |
Provide origin URL to client and fix remote share
Diffstat (limited to 'server')
-rw-r--r-- | server/models/video/formatter/video-format-utils.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/models/video/formatter/video-format-utils.ts b/server/models/video/formatter/video-format-utils.ts index b3c4f390d..0cbad5684 100644 --- a/server/models/video/formatter/video-format-utils.ts +++ b/server/models/video/formatter/video-format-utils.ts | |||
@@ -50,6 +50,8 @@ function videoModelToFormattedJSON (video: MVideoFormattable, options?: VideoFor | |||
50 | uuid: video.uuid, | 50 | uuid: video.uuid, |
51 | shortUUID: uuidToShort(video.uuid), | 51 | shortUUID: uuidToShort(video.uuid), |
52 | 52 | ||
53 | url: video.url, | ||
54 | |||
53 | name: video.name, | 55 | name: video.name, |
54 | category: { | 56 | category: { |
55 | id: video.category, | 57 | id: video.category, |