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 /client/src/app/+videos | |
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 'client/src/app/+videos')
-rw-r--r-- | client/src/app/+videos/+video-watch/shared/metadata/video-attributes.component.html | 2 | ||||
-rw-r--r-- | client/src/app/+videos/+video-watch/shared/metadata/video-attributes.component.ts | 8 |
2 files changed, 1 insertions, 9 deletions
diff --git a/client/src/app/+videos/+video-watch/shared/metadata/video-attributes.component.html b/client/src/app/+videos/+video-watch/shared/metadata/video-attributes.component.html index 362a21905..d65c9356a 100644 --- a/client/src/app/+videos/+video-watch/shared/metadata/video-attributes.component.html +++ b/client/src/app/+videos/+video-watch/shared/metadata/video-attributes.component.html | |||
@@ -12,7 +12,7 @@ | |||
12 | 12 | ||
13 | <a | 13 | <a |
14 | i18n-title title="Open the video on the origin instance" class="glyphicon glyphicon-new-window" | 14 | i18n-title title="Open the video on the origin instance" class="glyphicon glyphicon-new-window" |
15 | target="_blank" rel="noopener noreferrer" [href]="getVideoUrl()" | 15 | target="_blank" rel="noopener noreferrer" [href]="video.url" |
16 | ></a> | 16 | ></a> |
17 | </div> | 17 | </div> |
18 | 18 | ||
diff --git a/client/src/app/+videos/+video-watch/shared/metadata/video-attributes.component.ts b/client/src/app/+videos/+video-watch/shared/metadata/video-attributes.component.ts index 9429581ac..b8f564c4c 100644 --- a/client/src/app/+videos/+video-watch/shared/metadata/video-attributes.component.ts +++ b/client/src/app/+videos/+video-watch/shared/metadata/video-attributes.component.ts | |||
@@ -9,14 +9,6 @@ import { VideoDetails } from '@app/shared/shared-main' | |||
9 | export class VideoAttributesComponent { | 9 | export class VideoAttributesComponent { |
10 | @Input() video: VideoDetails | 10 | @Input() video: VideoDetails |
11 | 11 | ||
12 | getVideoUrl () { | ||
13 | if (!this.video.url) { | ||
14 | return this.video.originInstanceUrl + VideoDetails.buildWatchUrl(this.video) | ||
15 | } | ||
16 | |||
17 | return this.video.url | ||
18 | } | ||
19 | |||
20 | getVideoHost () { | 12 | getVideoHost () { |
21 | return this.video.channel.host | 13 | return this.video.channel.host |
22 | } | 14 | } |