72 if ( !$this->performer ) {
73 $actorStore = MediaWikiServices::getInstance()->getActorStore();
74 $userFactory = MediaWikiServices::getInstance()->getUserFactory();
75 if ( isset( $this->row->rc_actor ) ) {
77 $this->performer = $actorStore->newActorFromRowFields(
78 $this->row->rc_user ?? 0,
79 $this->row->rc_user_text,
82 }
catch ( InvalidArgumentException $e ) {
83 $this->performer = $actorStore->getUnknownActor();
84 LoggerFactory::getInstance(
'logentry' )->warning(
85 'Failed to instantiate RC log entry performer', [
87 'log_id' => $this->
getId()
91 } elseif ( isset( $this->row->rc_user ) ) {
92 $this->performer = $userFactory->newFromId( $this->row->rc_user )->getUser();
93 } elseif ( isset( $this->row->rc_user_text ) ) {
94 $user = $userFactory->newFromName( $this->row->rc_user_text );
96 $this->performer = $user->getUser();
98 $this->performer = $actorStore->getUnknownActor();
99 LoggerFactory::getInstance(
'logentry' )->warning(
100 'Failed to instantiate RC log entry performer', [
101 'rc_user_text' => $this->row->rc_user_text,
102 'log_id' => $this->getId()