From 62326afb151a1062253ac8b08bb62ce3f01e1267 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 5 May 2017 12:15:16 +0200 Subject: Server: Fix video propagation with transcoding enabled --- server/controllers/api/videos.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'server/controllers') 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) { }, function sendToFriends (t, video, callback) { + // Let transcoding job send the video to friends because the videofile extension might change + if (constants.CONFIG.TRANSCODING.ENABLED === true) return callback(null, t) + video.toAddRemoteJSON(function (err, remoteVideo) { if (err) return callback(err) -- cgit v1.2.3