diff options
Diffstat (limited to 'server/controllers/api/videos.js')
-rw-r--r-- | server/controllers/api/videos.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/controllers/api/videos.js b/server/controllers/api/videos.js index 0be7d9d83..4a4c5e162 100644 --- a/server/controllers/api/videos.js +++ b/server/controllers/api/videos.js | |||
@@ -379,6 +379,9 @@ function addVideo (req, res, videoFile, finalCallback) { | |||
379 | }, | 379 | }, |
380 | 380 | ||
381 | function sendToFriends (t, video, callback) { | 381 | function sendToFriends (t, video, callback) { |
382 | // Let transcoding job send the video to friends because the videofile extension might change | ||
383 | if (constants.CONFIG.TRANSCODING.ENABLED === true) return callback(null, t) | ||
384 | |||
382 | video.toAddRemoteJSON(function (err, remoteVideo) { | 385 | video.toAddRemoteJSON(function (err, remoteVideo) { |
383 | if (err) return callback(err) | 386 | if (err) return callback(err) |
384 | 387 | ||