isLoaded( 'MobileFrontend' ) && $rev->getUser() && Hooks::canReceiveThanks( $rev->getUser() ) && $output->getUser()->isRegistered() ) { $output->addModules( [ 'ext.thanks.mobilediff' ] ); if ( $output->getRequest()->getSessionData( 'thanks-thanked-' . $rev->getId() ) ) { // User already sent thanks for this revision $output->addJsConfigVars( 'wgThanksAlreadySent', true ); } } } }