New debug modes for AP/RSS publishing.

This commit is contained in:
John Livingston
2023-07-06 16:39:32 +02:00
parent cc68eb9010
commit ad8b71b582
3 changed files with 26 additions and 5 deletions

View File

@ -13,6 +13,7 @@ import { canonicalizePluginUri } from '../uri/canonicalize'
import { getProsodyDomain } from '../prosody/config/domain'
import { fillVideoCustomFields } from '../custom-fields'
import { loc } from '../loc'
import { isDebugMode } from '../debug'
/**
* This function adds LiveChat information on video ActivityPub data if relevant.
@ -99,7 +100,8 @@ async function videoBuildJSONLD (
// - prosody-room-allow-s2s
// - prosody-s2s-port
// For now, this can be tested reading serverInfos.directs2s
if (serverInfos.directs2s) {
// There is a debug_mode flag to always enable it.
if (!!serverInfos.directs2s || isDebugMode(options, 'alwaysPublishXMPPRoom')) {
discussionLinks.push({
type: 'Link',
name: chatTitle,