diff --git a/includes/CommentFormatter.php b/includes/CommentFormatter.php index 980353539..a4817ec2a 100644 --- a/includes/CommentFormatter.php +++ b/includes/CommentFormatter.php @@ -362,7 +362,10 @@ class CommentFormatter { return $item->jsonSerialize( true ); }, $threadItemSet->getThreadsStructured() ); - $pout->setJsConfigVar( 'wgDiscussionToolsPageThreads', $threadsJSON ); + // Temporary hack to deal with T351461#9358034: this should be a + // call to `setJsConfigVar` but Parsoid is currently reprocessing + // content from extensions. + $pout->addJsConfigVars( 'wgDiscussionToolsPageThreads', $threadsJSON ); // Like DOMCompat::getInnerHTML(), but disable 'smartQuote' for compatibility with // ParserOutput::EDITSECTION_REGEX matching 'mw:editsection' tags (T274709)