From: aude Date: Wed, 20 Feb 2013 12:02:07 +0000 (+0000) Subject: Omit RC_EXTERNAL edits from UDP feed X-Git-Tag: 1.31.0-rc.0~20182^2 X-Git-Url: http://git.cyclocoop.org/%22.%24redirect_annul.%22?a=commitdiff_plain;h=44658845315ff24e47b48637d5574038b01617ae;p=lhc%2Fweb%2Fwiklou.git Omit RC_EXTERNAL edits from UDP feed - bots and tools can get these edits from the feed of the external wiki Change-Id: Id9fbbb2463516b47798f9120b039004c94c49e0b --- diff --git a/includes/RecentChange.php b/includes/RecentChange.php index f63e95cc42..0a915cdf29 100644 --- a/includes/RecentChange.php +++ b/includes/RecentChange.php @@ -286,7 +286,9 @@ class RecentChange { public function notifyRC2UDP() { global $wgRC2UDPAddress, $wgRC2UDPOmitBots; # Notify external application via UDP - if ( $wgRC2UDPAddress && ( !$this->mAttribs['rc_bot'] || !$wgRC2UDPOmitBots ) ) { + # Omit RC_EXTERNAL changes: bots and tools can get these edits from the feed of the external wiki + if ( $wgRC2UDPAddress && $this->mAttribs['rc_type'] != RC_EXTERNAL && + ( !$this->mAttribs['rc_bot'] || !$wgRC2UDPOmitBots ) ) { self::sendToUDP( $this->getIRCLine() ); } }