Merge "ApiDiscussionToolsEdit: Use existing $this->commentParser reference"

This commit is contained in:
jenkins-bot 2022-03-29 21:01:18 +00:00 committed by Gerrit Code Review
commit 8a00babfe2

View file

@ -223,8 +223,7 @@ class ApiDiscussionToolsEdit extends ApiBase {
$container = DOMCompat::getBody( $doc );
$threadItemSet = MediaWikiServices::getInstance()->getService( 'DiscussionTools.CommentParser' )
->parse( $container, $title->getTitleValue() );
$threadItemSet = $this->commentParser->parse( $container, $title->getTitleValue() );
if ( $commentId ) {
$comment = $threadItemSet->findCommentById( $commentId );