]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/controllers/api/videos/index.ts
Update channel updatedAt when uploading a video
[github/Chocobozzz/PeerTube.git] / server / controllers / api / videos / index.ts
index 6ec6478e4666f1e10210f83eb0d684fb8ccc10f4..fbdb0f77687cdcf19b43cf6d577279ce2cb072a1 100644 (file)
@@ -248,6 +248,9 @@ async function addVideo (req: express.Request, res: express.Response) {
       }, { transaction: t })
     }
 
+    // Channel has a new content, set as updated
+    await videoCreated.VideoChannel.setAsUpdated(t)
+
     await autoBlacklistVideoIfNeeded({
       video,
       user: res.locals.oauth.token.User,