From 9e2b948b66d626bcfd00ec93776ad379e51f3541 Mon Sep 17 00:00:00 2001 From: Krenair Date: Fri, 3 May 2013 17:30:29 +0100 Subject: [PATCH] Do not send notifications for page links when the page is a redirect Bug: 48045 Change-Id: Ib61574732bde3f7a8aeec4a33a379cc3d1aab60b --- Hooks.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Hooks.php b/Hooks.php index a0f1bd998..a91a1d750 100644 --- a/Hooks.php +++ b/Hooks.php @@ -531,6 +531,10 @@ class EchoHooks { foreach ( $insertions as $key => $page ) { if ( MWNamespace::isContent( $page['pl_namespace'] ) ) { $title = Title::makeTitle( $page['pl_namespace'], $page['pl_title'] ); + if ( $title->isRedirect() ) { + continue; + } + EchoEvent::create( array( 'type' => 'page-linked', 'title' => $title,