diff options
author | Chocobozzz <me@florianbigard.com> | 2020-08-20 16:18:16 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-08-21 15:39:51 +0200 |
commit | 7294aab0c879ef96c0fde15c389a2c4c1463d3c7 (patch) | |
tree | bad1176720ee04266eba5470e9956e3a7871e349 /server/models | |
parent | f95628636b6ccdf3eae2449ca718e075b072f678 (diff) | |
download | PeerTube-7294aab0c879ef96c0fde15c389a2c4c1463d3c7.tar.gz PeerTube-7294aab0c879ef96c0fde15c389a2c4c1463d3c7.tar.zst PeerTube-7294aab0c879ef96c0fde15c389a2c4c1463d3c7.zip |
Add ability to set custom field to video form
Diffstat (limited to 'server/models')
-rw-r--r-- | server/models/video/video-format-utils.ts | 5 |
1 files changed, 4 insertions, 1 deletions
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) { |