aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/videos/import.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-07-22 11:14:58 +0200
committerChocobozzz <chocobozzz@cpy.re>2019-07-24 10:58:16 +0200
commit6691c52280363fc42f7865230ebb3741f02fff23 (patch)
tree071f9a4d7814c46dcfec100268cb0a0cc76e5204 /server/controllers/api/videos/import.ts
parent89cd12756035a146bbcc4db78cd3cd64f2f3d88d (diff)
downloadPeerTube-6691c52280363fc42f7865230ebb3741f02fff23.tar.gz
PeerTube-6691c52280363fc42f7865230ebb3741f02fff23.tar.zst
PeerTube-6691c52280363fc42f7865230ebb3741f02fff23.zip
Add filter hooks tests
Diffstat (limited to 'server/controllers/api/videos/import.ts')
-rw-r--r--server/controllers/api/videos/import.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/api/videos/import.ts b/server/controllers/api/videos/import.ts
index dcba0e08f..47c6f122c 100644
--- a/server/controllers/api/videos/import.ts
+++ b/server/controllers/api/videos/import.ts
@@ -245,7 +245,7 @@ function insertIntoDB (parameters: {
245 if (thumbnailModel) await videoCreated.addAndSaveThumbnail(thumbnailModel, t) 245 if (thumbnailModel) await videoCreated.addAndSaveThumbnail(thumbnailModel, t)
246 if (previewModel) await videoCreated.addAndSaveThumbnail(previewModel, t) 246 if (previewModel) await videoCreated.addAndSaveThumbnail(previewModel, t)
247 247
248 await autoBlacklistVideoIfNeeded(video, user, t) 248 await autoBlacklistVideoIfNeeded({ video, user, isRemote: false, isNew: true, transaction: t })
249 249
250 // Set tags to the video 250 // Set tags to the video
251 if (tags) { 251 if (tags) {