aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/controllers/api/videos/index.ts2
-rw-r--r--server/models/video/video-format-utils.ts5
2 files changed, 5 insertions, 2 deletions
diff --git a/server/controllers/api/videos/index.ts b/server/controllers/api/videos/index.ts
index c05acfd2f..15b6f214f 100644
--- a/server/controllers/api/videos/index.ts
+++ b/server/controllers/api/videos/index.ts
@@ -414,7 +414,7 @@ async function updateVideo (req: express.Request, res: express.Response) {
414 Notifier.Instance.notifyOnNewVideoIfNeeded(videoInstanceUpdated) 414 Notifier.Instance.notifyOnNewVideoIfNeeded(videoInstanceUpdated)
415 } 415 }
416 416
417 Hooks.runAction('action:api.video.updated', { video: videoInstanceUpdated }) 417 Hooks.runAction('action:api.video.updated', { video: videoInstanceUpdated, body: req.body })
418 } catch (err) { 418 } catch (err) {
419 // Force fields we want to update 419 // Force fields we want to update
420 // If the transaction is retried, sequelize will think the object has not changed 420 // If the transaction is retried, sequelize will think the object has not changed
diff --git a/server/models/video/video-format-utils.ts b/server/models/video/video-format-utils.ts
index 9b6509dfd..7a17c839f 100644
--- a/server/models/video/video-format-utils.ts
+++ b/server/models/video/video-format-utils.ts
@@ -78,7 +78,10 @@ function videoModelToFormattedJSON (video: MVideoFormattable, options?: VideoFor
78 78
79 userHistory: userHistory ? { 79 userHistory: userHistory ? {
80 currentTime: userHistory.currentTime 80 currentTime: userHistory.currentTime
81 } : undefined 81 } : undefined,
82
83 // Can be added by external plugins
84 pluginData: (video as any).pluginData
82 } 85 }
83 86
84 if (options) { 87 if (options) {