diff options
author | Chocobozzz <me@florianbigard.com> | 2017-12-14 10:07:57 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2017-12-14 10:07:57 +0100 |
commit | d48ff09d27d234425c3e9f091ae9072d8e6d8b7a (patch) | |
tree | 3a842b79aec40ca55d68c1cb6cf9b8aadcf2a1d1 /client/src/app/shared/video/video-details.model.ts | |
parent | 94edfc3b2a9cf83f1c9c470a76e4769bc37aad14 (diff) | |
download | PeerTube-d48ff09d27d234425c3e9f091ae9072d8e6d8b7a.tar.gz PeerTube-d48ff09d27d234425c3e9f091ae9072d8e6d8b7a.tar.zst PeerTube-d48ff09d27d234425c3e9f091ae9072d8e6d8b7a.zip |
Use sequelize scopes
Diffstat (limited to 'client/src/app/shared/video/video-details.model.ts')
-rw-r--r-- | client/src/app/shared/video/video-details.model.ts | 1 |
1 files changed, 1 insertions, 0 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 |