mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Remove references to author
This commit is contained in:
parent
0d0e8dd090
commit
38fa206583
34 changed files with 111 additions and 1367 deletions
|
@ -166,9 +166,9 @@ function isVideoFileInfoHashValid (value: string) {
|
|||
function checkVideoExists (id: string, res: express.Response, callback: () => void) {
|
||||
let promise: Promise<VideoInstance>
|
||||
if (validator.isInt(id)) {
|
||||
promise = db.Video.loadAndPopulateAuthorAndPodAndTags(+id)
|
||||
promise = db.Video.loadAndPopulateAccountAndPodAndTags(+id)
|
||||
} else { // UUID
|
||||
promise = db.Video.loadByUUIDAndPopulateAuthorAndPodAndTags(id)
|
||||
promise = db.Video.loadByUUIDAndPopulateAccountAndPodAndTags(id)
|
||||
}
|
||||
|
||||
promise.then(video => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue