account: video.VideoChannel.Account.toFormattedSummaryJSON(),
channel: video.VideoChannel.toFormattedSummaryJSON(),
- userHistory: userHistory ? {
- currentTime: userHistory.currentTime
- } : undefined,
+ userHistory: userHistory
+ ? { currentTime: userHistory.currentTime }
+ : undefined,
// Can be added by external plugins
pluginData: (video as any).pluginData