diff options
Diffstat (limited to 'client/src/app/videos/shared/video.model.ts')
-rw-r--r-- | client/src/app/videos/shared/video.model.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/client/src/app/videos/shared/video.model.ts b/client/src/app/videos/shared/video.model.ts index 2cad4a04e..0dd41d71b 100644 --- a/client/src/app/videos/shared/video.model.ts +++ b/client/src/app/videos/shared/video.model.ts | |||
@@ -19,7 +19,7 @@ export class Video implements VideoServerModel { | |||
19 | uuid: string | 19 | uuid: string |
20 | isLocal: boolean | 20 | isLocal: boolean |
21 | name: string | 21 | name: string |
22 | podHost: string | 22 | serverHost: string |
23 | tags: string[] | 23 | tags: string[] |
24 | thumbnailPath: string | 24 | thumbnailPath: string |
25 | thumbnailUrl: string | 25 | thumbnailUrl: string |
@@ -32,8 +32,8 @@ export class Video implements VideoServerModel { | |||
32 | dislikes: number | 32 | dislikes: number |
33 | nsfw: boolean | 33 | nsfw: boolean |
34 | 34 | ||
35 | private static createByString (account: string, podHost: string) { | 35 | private static createByString (account: string, serverHost: string) { |
36 | return account + '@' + podHost | 36 | return account + '@' + serverHost |
37 | } | 37 | } |
38 | 38 | ||
39 | private static createDurationString (duration: number) { | 39 | private static createDurationString (duration: number) { |
@@ -67,7 +67,7 @@ export class Video implements VideoServerModel { | |||
67 | this.uuid = hash.uuid | 67 | this.uuid = hash.uuid |
68 | this.isLocal = hash.isLocal | 68 | this.isLocal = hash.isLocal |
69 | this.name = hash.name | 69 | this.name = hash.name |
70 | this.podHost = hash.podHost | 70 | this.serverHost = hash.serverHost |
71 | this.tags = hash.tags | 71 | this.tags = hash.tags |
72 | this.thumbnailPath = hash.thumbnailPath | 72 | this.thumbnailPath = hash.thumbnailPath |
73 | this.thumbnailUrl = absoluteAPIUrl + hash.thumbnailPath | 73 | this.thumbnailUrl = absoluteAPIUrl + hash.thumbnailPath |
@@ -80,7 +80,7 @@ export class Video implements VideoServerModel { | |||
80 | this.dislikes = hash.dislikes | 80 | this.dislikes = hash.dislikes |
81 | this.nsfw = hash.nsfw | 81 | this.nsfw = hash.nsfw |
82 | 82 | ||
83 | this.by = Video.createByString(hash.account, hash.podHost) | 83 | this.by = Video.createByString(hash.account, hash.serverHost) |
84 | } | 84 | } |
85 | 85 | ||
86 | isVideoNSFWForUser (user: User) { | 86 | isVideoNSFWForUser (user: User) { |