aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2017-12-14 10:07:57 +0100
committerChocobozzz <me@florianbigard.com>2017-12-14 10:07:57 +0100
commitd48ff09d27d234425c3e9f091ae9072d8e6d8b7a (patch)
tree3a842b79aec40ca55d68c1cb6cf9b8aadcf2a1d1 /client/src
parent94edfc3b2a9cf83f1c9c470a76e4769bc37aad14 (diff)
downloadPeerTube-d48ff09d27d234425c3e9f091ae9072d8e6d8b7a.tar.gz
PeerTube-d48ff09d27d234425c3e9f091ae9072d8e6d8b7a.tar.zst
PeerTube-d48ff09d27d234425c3e9f091ae9072d8e6d8b7a.zip
Use sequelize scopes
Diffstat (limited to 'client/src')
-rw-r--r--client/src/app/shared/video/video-details.model.ts1
-rw-r--r--client/src/app/shared/video/video.model.ts2
2 files changed, 1 insertions, 2 deletions
diff --git a/client/src/app/shared/video/video-details.model.ts b/client/src/app/shared/video/video-details.model.ts
index b96f8f6c8..d51bc01a7 100644
--- a/client/src/app/shared/video/video-details.model.ts
+++ b/client/src/app/shared/video/video-details.model.ts
@@ -58,6 +58,7 @@ export class VideoDetails extends Video implements VideoDetailsServerModel {
58 this.files = hash.files 58 this.files = hash.files
59 this.channel = hash.channel 59 this.channel = hash.channel
60 this.account = hash.account 60 this.account = hash.account
61 this.tags = hash.tags
61 62
62 this.likesPercent = (this.likes / (this.likes + this.dislikes)) * 100 63 this.likesPercent = (this.likes / (this.likes + this.dislikes)) * 100
63 this.dislikesPercent = (this.dislikes / (this.likes + this.dislikes)) * 100 64 this.dislikesPercent = (this.dislikes / (this.likes + this.dislikes)) * 100
diff --git a/client/src/app/shared/video/video.model.ts b/client/src/app/shared/video/video.model.ts
index 32c33829d..c3759cb65 100644
--- a/client/src/app/shared/video/video.model.ts
+++ b/client/src/app/shared/video/video.model.ts
@@ -22,7 +22,6 @@ export class Video implements VideoServerModel {
22 isLocal: boolean 22 isLocal: boolean
23 name: string 23 name: string
24 serverHost: string 24 serverHost: string
25 tags: string[]
26 thumbnailPath: string 25 thumbnailPath: string
27 thumbnailUrl: string 26 thumbnailUrl: string
28 previewPath: string 27 previewPath: string
@@ -71,7 +70,6 @@ export class Video implements VideoServerModel {
71 this.isLocal = hash.isLocal 70 this.isLocal = hash.isLocal
72 this.name = hash.name 71 this.name = hash.name
73 this.serverHost = hash.serverHost 72 this.serverHost = hash.serverHost
74 this.tags = hash.tags
75 this.thumbnailPath = hash.thumbnailPath 73 this.thumbnailPath = hash.thumbnailPath
76 this.thumbnailUrl = absoluteAPIUrl + hash.thumbnailPath 74 this.thumbnailUrl = absoluteAPIUrl + hash.thumbnailPath
77 this.previewPath = hash.previewPath 75 this.previewPath = hash.previewPath