aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-05-07 17:14:39 +0200
committerChocobozzz <me@florianbigard.com>2021-05-10 09:38:11 +0200
commite024fd6a7494b37251da1d59470324305cdb4129 (patch)
treee39b8c4b1bd8ba38936f0657e485358fc10b9050 /server/controllers
parent1e0741d16545ea720d04b566a808853b3975ea7f (diff)
downloadPeerTube-e024fd6a7494b37251da1d59470324305cdb4129.tar.gz
PeerTube-e024fd6a7494b37251da1d59470324305cdb4129.tar.zst
PeerTube-e024fd6a7494b37251da1d59470324305cdb4129.zip
Update channel updatedAt when uploading a video
Diffstat (limited to 'server/controllers')
-rw-r--r--server/controllers/api/videos/index.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/controllers/api/videos/index.ts b/server/controllers/api/videos/index.ts
index 6ec6478e4..fbdb0f776 100644
--- a/server/controllers/api/videos/index.ts
+++ b/server/controllers/api/videos/index.ts
@@ -248,6 +248,9 @@ async function addVideo (req: express.Request, res: express.Response) {
248 }, { transaction: t }) 248 }, { transaction: t })
249 } 249 }
250 250
251 // Channel has a new content, set as updated
252 await videoCreated.VideoChannel.setAsUpdated(t)
253
251 await autoBlacklistVideoIfNeeded({ 254 await autoBlacklistVideoIfNeeded({
252 video, 255 video,
253 user: res.locals.oauth.token.User, 256 user: res.locals.oauth.token.User,