Merge "Replace deprecated ChangeTags method calls with ChangeTagsStore"

This commit is contained in:
jenkins-bot 2024-04-01 11:11:40 +00:00 committed by Gerrit Code Review
commit 409c2fb7e5

View file

@ -9,7 +9,6 @@
namespace MediaWiki\Extension\DiscussionTools\Notifications;
use ChangeTags;
use DateInterval;
use DateTimeImmutable;
use ExtensionRegistry;
@ -338,7 +337,8 @@ class EventDispatcher {
// Unclear if DeferredUpdates::addCallableUpdate() is needed,
// but every extension does it that way.
DeferredUpdates::addCallableUpdate( static function () use ( $newRevRecord ) {
ChangeTags::addTags( [ 'discussiontools-added-comment' ], null, $newRevRecord->getId() );
MediaWikiServices::getInstance()->getChangeTagsStore()
->addTags( [ 'discussiontools-added-comment' ], null, $newRevRecord->getId() );
} );
}