diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-10 14:48:08 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 19:40:51 +0100 |
commit | 38fa2065831b5f55be0d7f30f19a62c967397208 (patch) | |
tree | 4a986465e3a88c85bc6a8b5fc992e0f2edd63ef0 /server/helpers/custom-validators/videos.ts | |
parent | 0d0e8dd0904b380b70e19ebcb4763d65601c4632 (diff) | |
download | PeerTube-38fa2065831b5f55be0d7f30f19a62c967397208.tar.gz PeerTube-38fa2065831b5f55be0d7f30f19a62c967397208.tar.zst PeerTube-38fa2065831b5f55be0d7f30f19a62c967397208.zip |
Remove references to author
Diffstat (limited to 'server/helpers/custom-validators/videos.ts')
-rw-r--r-- | server/helpers/custom-validators/videos.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/helpers/custom-validators/videos.ts b/server/helpers/custom-validators/videos.ts index 83407f17b..487b3d646 100644 --- a/server/helpers/custom-validators/videos.ts +++ b/server/helpers/custom-validators/videos.ts | |||
@@ -166,9 +166,9 @@ function isVideoFileInfoHashValid (value: string) { | |||
166 | function checkVideoExists (id: string, res: express.Response, callback: () => void) { | 166 | function checkVideoExists (id: string, res: express.Response, callback: () => void) { |
167 | let promise: Promise<VideoInstance> | 167 | let promise: Promise<VideoInstance> |
168 | if (validator.isInt(id)) { | 168 | if (validator.isInt(id)) { |
169 | promise = db.Video.loadAndPopulateAuthorAndPodAndTags(+id) | 169 | promise = db.Video.loadAndPopulateAccountAndPodAndTags(+id) |
170 | } else { // UUID | 170 | } else { // UUID |
171 | promise = db.Video.loadByUUIDAndPopulateAuthorAndPodAndTags(id) | 171 | promise = db.Video.loadByUUIDAndPopulateAccountAndPodAndTags(id) |
172 | } | 172 | } |
173 | 173 | ||
174 | promise.then(video => { | 174 | promise.then(video => { |