29 $this->recentChangeLookup = $recentChangeLookup;
33 public function run() {
36 if ( isset( $this->params[
'editorID'] ) && $this->params[
'editorID'] ) {
37 $editor = User::newFromId( $this->params[
'editorID'] );
40 # @todo FIXME: newFromName could return false on a badly configured wiki.
41 $editor = User::newFromName( $this->params[
'editor'],
false );
43 if ( !array_key_exists(
'rc_id', $this->params ) ) {
45 'Cannot execute RecentChangeNotifyJob without `rc_id`. This has to be an old job'
49 $recentChange = $this->recentChangeLookup->getRecentChangeById( $this->params[
'rc_id'] );
50 if ( $recentChange ) {
51 $notifier->actuallyNotifyOnPageChange(
55 $this->params[
'watchers'],
56 $this->params[
'pageStatus']
64class_alias( RecentChangeNotifyJob::class,
'EnotifNotifyJob' );