mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 17:59:37 +02:00
Remove references to author
This commit is contained in:
parent
0d0e8dd090
commit
38fa206583
34 changed files with 111 additions and 1367 deletions
|
@ -110,9 +110,9 @@ async function generateWatchHtmlPage (req: express.Request, res: express.Respons
|
|||
|
||||
// Let Angular application handle errors
|
||||
if (validator.isUUID(videoId, 4)) {
|
||||
videoPromise = db.Video.loadByUUIDAndPopulateAuthorAndPodAndTags(videoId)
|
||||
videoPromise = db.Video.loadByUUIDAndPopulateAccountAndPodAndTags(videoId)
|
||||
} else if (validator.isInt(videoId)) {
|
||||
videoPromise = db.Video.loadAndPopulateAuthorAndPodAndTags(+videoId)
|
||||
videoPromise = db.Video.loadAndPopulateAccountAndPodAndTags(+videoId)
|
||||
} else {
|
||||
return res.sendFile(indexPath)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue