diff --git a/server/lib/custom-fields.ts b/server/lib/custom-fields.ts index 8d688b9b..eb491296 100644 --- a/server/lib/custom-fields.ts +++ b/server/lib/custom-fields.ts @@ -1,4 +1,6 @@ -import type { RegisterServerOptions, Video } from '@peertube/peertube-types' +import type { RegisterServerOptions, Video, MVideoThumbnail } from '@peertube/peertube-types' +import { getVideoLiveChatInfos } from './federation/storage' + async function initCustomFields (options: RegisterServerOptions): Promise { const registerHook = options.registerHook const storageManager = options.storageManager @@ -32,8 +34,11 @@ async function initCustomFields (options: RegisterServerOptions): Promise registerHook({ target: 'filter:api.video.get.result', handler: async (video: Video): Promise