aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
Diffstat (limited to 'client/src')
-rw-r--r--client/src/app/+videos/+video-watch/video-watch.component.html4
-rw-r--r--client/src/app/+videos/+video-watch/video-watch.component.ts7
2 files changed, 9 insertions, 2 deletions
diff --git a/client/src/app/+videos/+video-watch/video-watch.component.html b/client/src/app/+videos/+video-watch/video-watch.component.html
index c1ba0a755..6ede109fd 100644
--- a/client/src/app/+videos/+video-watch/video-watch.component.html
+++ b/client/src/app/+videos/+video-watch/video-watch.component.html
@@ -232,8 +232,8 @@
232 </div> 232 </div>
233 233
234 <div *ngIf="video.isLocal === false" class="video-attribute"> 234 <div *ngIf="video.isLocal === false" class="video-attribute">
235 <span i18n class="video-attribute-label">Origin instance</span> 235 <span i18n class="video-attribute-label">Origin</span>
236 <a class="video-attribute-value" target="_blank" rel="noopener noreferrer" [href]="video.originInstanceUrl">{{ video.originInstanceHost }}</a> 236 <a class="video-attribute-value" target="_blank" rel="noopener noreferrer" [href]="getVideoUrl()">{{ video.originInstanceHost }}</a>
237 </div> 237 </div>
238 238
239 <div *ngIf="!!video.originallyPublishedAt" class="video-attribute"> 239 <div *ngIf="!!video.originallyPublishedAt" class="video-attribute">
diff --git a/client/src/app/+videos/+video-watch/video-watch.component.ts b/client/src/app/+videos/+video-watch/video-watch.component.ts
index 0c0eaaa78..366e9bb57 100644
--- a/client/src/app/+videos/+video-watch/video-watch.component.ts
+++ b/client/src/app/+videos/+video-watch/video-watch.component.ts
@@ -295,6 +295,13 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
295 return this.authService.isLoggedIn() 295 return this.authService.isLoggedIn()
296 } 296 }
297 297
298 getVideoUrl () {
299 if (!this.video.url) {
300 return this.video.originInstanceUrl + VideoDetails.buildClientUrl(this.video.uuid)
301 }
302 return this.video.url
303 }
304
298 getVideoTags () { 305 getVideoTags () {
299 if (!this.video || Array.isArray(this.video.tags) === false) return [] 306 if (!this.video || Array.isArray(this.video.tags) === false) return []
300 307