getSkin()->getSkinName() === 'minerva' ) { $overflowMenuItems[] = new OverflowMenuItem( 'edit', 'edit', $contextSource->msg( 'skin-view-edit' ), 2 ); } $dtConfig = MediaWikiServices::getInstance()->getConfigFactory()->makeConfig( 'discussiontools' ); if ( $dtConfig->get( 'DiscussionToolsEnableThanks' ) ) { $user = $contextSource->getUser(); $showThanks = ExtensionRegistry::getInstance()->isLoaded( 'Thanks' ); if ( $showThanks && ( $threadItemData['type'] ?? null ) === 'comment' && $user->isNamed() ) { $userNameUtils = MediaWikiServices::getInstance()->getUserNameUtils(); $recipient = $userNameUtils->getCanonical( $threadItemData['author'], UserNameUtils::RIGOR_NONE ); if ( $recipient !== $user->getName() && !$userNameUtils->isIP( $recipient ) ) { $overflowMenuItems[] = new OverflowMenuItem( 'thank', 'heart', $contextSource->msg( 'thanks-button-thank' ), ); } } } } }