39 $recentChangeRCFeedNotifier = $services->getRecentChangeRCFeedNotifier();
40 $mainConfig = $services->getMainConfig();
45 if ( $attribs[
'rc_source'] == RecentChange::SRC_CATEGORIZE ) {
50 if ( $attribs[
'rc_source'] == RecentChange::SRC_LOG ) {
53 $titleObj = Title::newFromText(
'Log/' . $attribs[
'rc_log_type'],
NS_SPECIAL );
57 $title = $titleObj->getPrefixedText();
60 $notifyUrl = $recentChangeRCFeedNotifier->getNotifyUrl( $rc ) ??
'';
62 if ( $attribs[
'rc_old_len'] !==
null && $attribs[
'rc_new_len'] !==
null ) {
63 $szdiff = $attribs[
'rc_new_len'] - $attribs[
'rc_old_len'];
64 if ( $szdiff < -500 ) {
65 $szdiff =
"\002$szdiff\002";
66 } elseif ( $szdiff >= 0 ) {
67 $szdiff =
'+' . $szdiff;
70 $szdiff =
'(' . $szdiff .
')';
77 if ( $attribs[
'rc_source'] == RecentChange::SRC_LOG ) {
78 $targetText = $rc->
getTitle()->getPrefixedText();
81 "[[\00302$targetText\00310]]",
84 $flag = $attribs[
'rc_log_action'];
86 $store = $services->getCommentStore();
89 if ( !$attribs[
'rc_patrolled']
90 && ( $useRCPatrol || ( $attribs[
'rc_source'] == RecentChange::SRC_NEW && $useNPPatrol ) )
94 $flag .= ( $attribs[
'rc_source'] == RecentChange::SRC_NEW ?
"N" :
"" )
95 . ( $attribs[
'rc_minor'] ?
"M" :
"" ) . ( $attribs[
'rc_bot'] ?
"B" :
"" );
98 if ( $feed[
'add_interwiki_prefix'] ===
true && $localInterwikis ) {
100 $prefix = $localInterwikis[0];
101 } elseif ( $feed[
'add_interwiki_prefix'] ) {
102 $prefix = $feed[
'add_interwiki_prefix'];
106 if ( $prefix !==
false ) {
107 $titleString =
"\00314[[\00303$prefix:\00307$title\00314]]";
109 $titleString =
"\00314[[\00307$title\00314]]";
113 # no colour (\003) switches back to the term default
114 $fullString =
"$titleString\0034 $flag\00310 " .
115 "\00302$notifyUrl\003 \0035*\003 \00303$user\003 \0035*\003 $szdiff \00310$comment\003\n";