X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-main%2Fvideo%2Fvideo.model.ts;h=147d0817e2b6aba7cf300300ea0b94f55c20ee53;hb=72493e44e9b455a04c4f093ed6c6ffa300b98d8b;hp=3e6d6a38d6422e1cfe0eb208adc81b818cb7cb85;hpb=1fdf8edb77008133e80e5ab8e846b7f8fdfecf12;p=github%2FChocobozzz%2FPeerTube.git 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 3e6d6a38d..147d0817e 100644 --- a/client/src/app/shared/shared-main/video/video.model.ts +++ b/client/src/app/shared/shared-main/video/video.model.ts @@ -1,6 +1,6 @@ import { AuthUser } from '@app/core' import { User } from '@app/core/users/user.model' -import { durationToString, getAbsoluteAPIUrl } from '@app/helpers' +import { durationToString, getAbsoluteAPIUrl, getAbsoluteEmbedUrl } from '@app/helpers' import { Avatar, peertubeTranslate, @@ -12,7 +12,6 @@ import { VideoScheduleUpdate, VideoState } from '@shared/models' -import { environment } from '../../../../environments/environment' import { Actor } from '../account/actor.model' export class Video implements VideoServerModel { @@ -118,7 +117,7 @@ export class Video implements VideoServerModel { this.previewUrl = hash.previewUrl || (absoluteAPIUrl + hash.previewPath) this.embedPath = hash.embedPath - this.embedUrl = hash.embedUrl || (environment.embedUrl + hash.embedPath) + this.embedUrl = hash.embedUrl || (getAbsoluteEmbedUrl() + hash.embedPath) this.url = hash.url