ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix share embed iframe link
Chocobozzzc6e0bfbf5822
diff --git a/client/src/app/videos/shared/video.model.ts b/client/src/app/videos/shared/video.model.tsindex 51c5319eac..6e8dfaa6f4 100644--- a/client/src/app/videos/shared/video.model.ts+++ b/client/src/app/videos/shared/video.model.ts@@ -73,6 +73,12 @@ export class Video implements VideoServerModel {nsfw: boolean,files: VideoFile[]}) {+ let absoluteAPIUrl = API_URL+ if (!absoluteAPIUrl) {+ // The API is on the same domain+ absoluteAPIUrl = window.location.origin+ }+this.author = hash.authorthis.createdAt = new Date(hash.createdAt.toString())this.categoryLabel = hash.categoryLabel@@ -91,11 +97,11 @@ export class Video implements VideoServerModel {this.podHost = hash.podHostthis.tags = hash.tagsthis.thumbnailPath = hash.thumbnailPath- this.thumbnailUrl = API_URL + hash.thumbnailPath+ this.thumbnailUrl = absoluteAPIUrl + hash.thumbnailPaththis.previewPath = hash.previewPath- this.previewUrl = API_URL + hash.previewPath+ this.previewUrl = absoluteAPIUrl + hash.previewPaththis.embedPath = hash.embedPath- this.embedUrl = API_URL + hash.embedPath+ this.embedUrl = absoluteAPIUrl + hash.embedPaththis.views = hash.viewsthis.likes = hash.likesthis.dislikes = hash.dislikes