aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/videos/upload.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers/api/videos/upload.ts')
-rw-r--r--server/controllers/api/videos/upload.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/controllers/api/videos/upload.ts b/server/controllers/api/videos/upload.ts
index 7ffda749d..7e87df8b1 100644
--- a/server/controllers/api/videos/upload.ts
+++ b/server/controllers/api/videos/upload.ts
@@ -197,9 +197,6 @@ async function addVideo (options: {
197 }, sequelizeOptions) 197 }, sequelizeOptions)
198 } 198 }
199 199
200 // Channel has a new content, set as updated
201 await videoCreated.VideoChannel.setAsUpdated(t)
202
203 await autoBlacklistVideoIfNeeded({ 200 await autoBlacklistVideoIfNeeded({
204 video, 201 video,
205 user, 202 user,
@@ -214,6 +211,9 @@ async function addVideo (options: {
214 return { videoCreated } 211 return { videoCreated }
215 }) 212 })
216 213
214 // Channel has a new content, set as updated
215 await videoCreated.VideoChannel.setAsUpdated()
216
217 createTorrentFederate(video, videoFile) 217 createTorrentFederate(video, videoFile)
218 .then(() => { 218 .then(() => {
219 if (video.state === VideoState.TO_MOVE_TO_EXTERNAL_STORAGE) { 219 if (video.state === VideoState.TO_MOVE_TO_EXTERNAL_STORAGE) {