mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-12 01:10:07 +00:00
Do not send notifications for page links when the page is a redirect
Bug: 48045 Change-Id: Ib61574732bde3f7a8aeec4a33a379cc3d1aab60b
This commit is contained in:
parent
17ff356648
commit
9e2b948b66
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue