mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Add hook filters tests
This commit is contained in:
parent
09071200c7
commit
89cd127560
18 changed files with 306 additions and 80 deletions
|
@ -208,7 +208,7 @@ function getAccountVideoRate (rateType: VideoRateType) {
|
|||
|
||||
async function videoController (req: express.Request, res: express.Response) {
|
||||
// We need more attributes
|
||||
const video = await VideoModel.loadForGetAPI(res.locals.video.id)
|
||||
const video = await VideoModel.loadForGetAPI({ id: res.locals.video.id })
|
||||
|
||||
if (video.url.startsWith(WEBSERVER.URL) === false) return res.redirect(video.url)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue