]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/models/video/video-format-utils.ts
Add ability to set custom field to video form
[github/Chocobozzz/PeerTube.git] / server / models / video / video-format-utils.ts
index 9b6509dfd6540b6df68078adcf01cf38b5ea7da4..7a17c839f5f88082ffb7bfe05429b730b5d31175 100644 (file)
@@ -78,7 +78,10 @@ function videoModelToFormattedJSON (video: MVideoFormattable, options?: VideoFor
 
     userHistory: userHistory ? {
       currentTime: userHistory.currentTime
-    } : undefined
+    } : undefined,
+
+    // Can be added by external plugins
+    pluginData: (video as any).pluginData
   }
 
   if (options) {