diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-15 11:00:25 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 19:40:51 +0100 |
commit | 608624252466acf9f1d9ee1c1170bd4fe4d18d18 (patch) | |
tree | 47eab55bb5421b7fe88e0b2ac743a436fd9561cf /client/src/app/videos/shared | |
parent | 51548b31815c6f96f314ae96588a9adca150519d (diff) | |
download | PeerTube-608624252466acf9f1d9ee1c1170bd4fe4d18d18.tar.gz PeerTube-608624252466acf9f1d9ee1c1170bd4fe4d18d18.tar.zst PeerTube-608624252466acf9f1d9ee1c1170bd4fe4d18d18.zip |
Rename Pod -> Server
Diffstat (limited to 'client/src/app/videos/shared')
-rw-r--r-- | client/src/app/videos/shared/video-details.model.ts | 2 | ||||
-rw-r--r-- | client/src/app/videos/shared/video.model.ts | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/client/src/app/videos/shared/video-details.model.ts b/client/src/app/videos/shared/video-details.model.ts index f4ae64dc1..64cb4f847 100644 --- a/client/src/app/videos/shared/video-details.model.ts +++ b/client/src/app/videos/shared/video-details.model.ts | |||
@@ -27,7 +27,7 @@ export class VideoDetails extends Video implements VideoDetailsServerModel { | |||
27 | uuid: string | 27 | uuid: string |
28 | isLocal: boolean | 28 | isLocal: boolean |
29 | name: string | 29 | name: string |
30 | podHost: string | 30 | serverHost: string |
31 | tags: string[] | 31 | tags: string[] |
32 | thumbnailPath: string | 32 | thumbnailPath: string |
33 | thumbnailUrl: string | 33 | thumbnailUrl: string |
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) { |