dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
dca6a22
)
Merge "Omit RC_EXTERNAL edits from UDP feed"
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Fri, 29 Mar 2013 02:15:55 +0000
(
02:15
+0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Fri, 29 Mar 2013 02:15:56 +0000
(
02:15
+0000)
includes/RecentChange.php
patch
|
blob
|
history
diff --git
a/includes/RecentChange.php
b/includes/RecentChange.php
index
d7cf995
..
faad391
100644
(file)
--- a/
includes/RecentChange.php
+++ b/
includes/RecentChange.php
@@
-284,7
+284,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() );
}
}