ActivityPub-federated video streaming platform using P2P directly in your web browser
add link to open video on origin instance
Rigel Kentde779034cdfc
diff --git a/client/src/app/+videos/+video-watch/video-watch.component.html b/client/src/app/+videos/+video-watch/video-watch.component.htmlindex c1ba0a755b..6ede109fd8 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 @@</div><div *ngIf="video.isLocal === false" class="video-attribute">- <span i18n class="video-attribute-label">Origin instance</span>- <a class="video-attribute-value" target="_blank" rel="noopener noreferrer" [href]="video.originInstanceUrl">{{ video.originInstanceHost }}</a>+ <span i18n class="video-attribute-label">Origin</span>+ <a class="video-attribute-value" target="_blank" rel="noopener noreferrer" [href]="getVideoUrl()">{{ video.originInstanceHost }}</a></div><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.tsindex 0c0eaaa78d..366e9bb57c 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 {return this.authService.isLoggedIn()}+ getVideoUrl () {+ if (!this.video.url) {+ return this.video.originInstanceUrl + VideoDetails.buildClientUrl(this.video.uuid)+ }+ return this.video.url+ }+getVideoTags () {if (!this.video || Array.isArray(this.video.tags) === false) return []