diff options
author | Chocobozzz <me@florianbigard.com> | 2020-07-10 11:13:41 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-07-10 11:13:41 +0200 |
commit | 72493e44e9b455a04c4f093ed6c6ffa300b98d8b (patch) | |
tree | fc39d2b119ffbbf76339cf1dc2a9bd160c35c304 /client/src/app/shared | |
parent | 1fdf8edb77008133e80e5ab8e846b7f8fdfecf12 (diff) | |
download | PeerTube-72493e44e9b455a04c4f093ed6c6ffa300b98d8b.tar.gz PeerTube-72493e44e9b455a04c4f093ed6c6ffa300b98d8b.tar.zst PeerTube-72493e44e9b455a04c4f093ed6c6ffa300b98d8b.zip |
Fix embed url
Diffstat (limited to 'client/src/app/shared')
-rw-r--r-- | client/src/app/shared/shared-main/video/video.model.ts | 5 |
1 files changed, 2 insertions, 3 deletions
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 @@ | |||
1 | import { AuthUser } from '@app/core' | 1 | import { AuthUser } from '@app/core' |
2 | import { User } from '@app/core/users/user.model' | 2 | import { User } from '@app/core/users/user.model' |
3 | import { durationToString, getAbsoluteAPIUrl } from '@app/helpers' | 3 | import { durationToString, getAbsoluteAPIUrl, getAbsoluteEmbedUrl } from '@app/helpers' |
4 | import { | 4 | import { |
5 | Avatar, | 5 | Avatar, |
6 | peertubeTranslate, | 6 | peertubeTranslate, |
@@ -12,7 +12,6 @@ import { | |||
12 | VideoScheduleUpdate, | 12 | VideoScheduleUpdate, |
13 | VideoState | 13 | VideoState |
14 | } from '@shared/models' | 14 | } from '@shared/models' |
15 | import { environment } from '../../../../environments/environment' | ||
16 | import { Actor } from '../account/actor.model' | 15 | import { Actor } from '../account/actor.model' |
17 | 16 | ||
18 | export class Video implements VideoServerModel { | 17 | export class Video implements VideoServerModel { |
@@ -118,7 +117,7 @@ export class Video implements VideoServerModel { | |||
118 | this.previewUrl = hash.previewUrl || (absoluteAPIUrl + hash.previewPath) | 117 | this.previewUrl = hash.previewUrl || (absoluteAPIUrl + hash.previewPath) |
119 | 118 | ||
120 | this.embedPath = hash.embedPath | 119 | this.embedPath = hash.embedPath |
121 | this.embedUrl = hash.embedUrl || (environment.embedUrl + hash.embedPath) | 120 | this.embedUrl = hash.embedUrl || (getAbsoluteEmbedUrl() + hash.embedPath) |
122 | 121 | ||
123 | this.url = hash.url | 122 | this.url = hash.url |
124 | 123 | ||