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