This commit is contained in:
John Livingston 2023-04-21 19:24:55 +02:00
parent 5a4eb7fc33
commit 1a5989d9a9
No known key found for this signature in database
GPG Key ID: B17B5640CE66CDBC

View File

@ -5,6 +5,7 @@ import { videoHasWebchat } from '../../../shared/lib/video'
import { getBoshUri, getWSUri } from '../uri/webchat'
import { canonicalizePluginUri } from '../uri/canonicalize'
import { getProsodyDomain } from '../prosody/config/domain'
import { fillVideoCustomFields } from 'lib/custom-fields'
/**
* This function adds LiveChat information on video ActivityPub data if relevant.
@ -39,6 +40,7 @@ async function videoBuildJSONLD (
return jsonld
}
await fillVideoCustomFields(options, video)
const hasChat = await videoHasWebchat({
'chat-per-live-video': !!settings['chat-per-live-video'],
'chat-all-lives': !!settings['chat-all-lives'],