mirror of https://github.com/Chocobozzz/PeerTube
parent
8155db669b
commit
de779034cd
|
@ -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">
|
||||
|
|
|
@ -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 []
|
||||
|
||||
|
|
Loading…
Reference in New Issue