]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/controllers/api/videos/index.ts
Remove references to author
[github/Chocobozzz/PeerTube.git] / server / controllers / api / videos / index.ts
index 964db151dc262e3b8f0e2f8edabb4916aff52d1d..9ad84609f212986c94735b1d8217c79a4d227c7d 100644 (file)
@@ -395,7 +395,7 @@ async function removeVideo (req: express.Request, res: express.Response) {
 }
 
 async function searchVideos (req: express.Request, res: express.Response, next: express.NextFunction) {
-  const resultList = await db.Video.searchAndPopulateAuthorAndPodAndTags(
+  const resultList = await db.Video.searchAndPopulateAccountAndPodAndTags(
     req.params.value,
     req.query.field,
     req.query.start,