aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-10-22 14:11:58 +0200
committerChocobozzz <me@florianbigard.com>2021-10-22 14:11:58 +0200
commitab4001aade0891b70e456a215ced0f825c57fde8 (patch)
tree1690f4eecdef3f9a41c6b330852995774638eb23 /client/src/app/shared
parentde7f11143f6d8a617f1eb15d536a3486e7e22301 (diff)
downloadPeerTube-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/shared')
-rw-r--r--client/src/app/shared/shared-main/video/video.model.ts2
-rw-r--r--client/src/app/shared/shared-share-modal/video-share.component.ts8
2 files changed, 5 insertions, 5 deletions
diff --git a/client/src/app/shared/shared-main/video/video.model.ts b/client/src/app/shared/shared-main/video/video.model.ts
index 7471a933b..10caec014 100644
--- a/client/src/app/shared/shared-main/video/video.model.ts
+++ b/client/src/app/shared/shared-main/video/video.model.ts
@@ -52,7 +52,7 @@ export class Video implements VideoServerModel {
52 embedPath: string 52 embedPath: string
53 embedUrl: string 53 embedUrl: string
54 54
55 url?: string 55 url: string
56 56
57 views: number 57 views: number
58 likes: number 58 likes: number
diff --git a/client/src/app/shared/shared-share-modal/video-share.component.ts b/client/src/app/shared/shared-share-modal/video-share.component.ts
index 341abdc2b..70890e551 100644
--- a/client/src/app/shared/shared-share-modal/video-share.component.ts
+++ b/client/src/app/shared/shared-share-modal/video-share.component.ts
@@ -96,12 +96,12 @@ export class VideoShareComponent {
96 } 96 }
97 97
98 getVideoUrl () { 98 getVideoUrl () {
99 const baseUrl = this.customizations.originUrl 99 const url = this.customizations.originUrl
100 ? this.video.originInstanceUrl 100 ? this.video.url
101 : window.location.origin 101 : buildVideoLink(this.video, window.location.origin)
102 102
103 return decorateVideoLink({ 103 return decorateVideoLink({
104 url: buildVideoLink(this.video, baseUrl), 104 url,
105 105
106 ...this.getVideoOptions() 106 ...this.getVideoOptions()
107 }) 107 })