From 0ec0fa40287fa6337ced01ca6c152d03ae45488d Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Thu, 18 Feb 2016 12:02:31 -0800 Subject: [PATCH] Don't send RC_CATEGORIZE events to the IRC feed Bug: T127360 Change-Id: I21e4c0edf25fc0b7f16ef3029de879d3b7a2923d --- includes/rcfeed/IRCColourfulRCFeedFormatter.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/includes/rcfeed/IRCColourfulRCFeedFormatter.php b/includes/rcfeed/IRCColourfulRCFeedFormatter.php index c800c36fd2..ddea69511a 100644 --- a/includes/rcfeed/IRCColourfulRCFeedFormatter.php +++ b/includes/rcfeed/IRCColourfulRCFeedFormatter.php @@ -33,6 +33,11 @@ class IRCColourfulRCFeedFormatter implements RCFeedFormatter { global $wgUseRCPatrol, $wgUseNPPatrol, $wgLocalInterwikis, $wgCanonicalServer, $wgScript; $attribs = $rc->getAttributes(); + if ( $attribs['rc_type'] == RC_CATEGORIZE ) { + // Don't send RC_CATEGORIZE events to IRC feed (T127360) + return null; + } + if ( $attribs['rc_type'] == RC_LOG ) { // Don't use SpecialPage::getTitleFor, backwards compatibility with // IRC API which expects "Log". -- 2.20.1