Kaldari has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/61957


Change subject: Allow mention notifications from project pages
......................................................................

Allow mention notifications from project pages

(Such as Wikipedia:AN, Wikipedia:AN/I, Wikipedia:RfA, etc.)

Change-Id: If4e404b4fc8f4e16800f340f9a1050f66f663213
---
M Hooks.php
1 file changed, 4 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Echo 
refs/changes/57/61957/1

diff --git a/Hooks.php b/Hooks.php
index 5646e75..f10b22e 100644
--- a/Hooks.php
+++ b/Hooks.php
@@ -397,7 +397,10 @@
        public static function onArticleSaved( &$article, &$user, $text, 
$summary, $minoredit, $watchthis, $sectionanchor, &$flags, $revision, &$status 
) {
                global $wgEchoNotifications, $wgRequest;
                if ( $revision ) {
-                       if ( $article->getTitle()->isTalkPage() ) {
+                       $title = $article->getTitle();
+                       // If the edit is to a talk page or a project page, 
send it to the
+                       // discussion parser.
+                       if ( $title->isTalkPage() || $title->inNamespace( 
NS_PROJECT ) ) {
                                
EchoDiscussionParser::generateEventsForRevision( $revision );
                        }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/61957
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If4e404b4fc8f4e16800f340f9a1050f66f663213
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Echo
Gerrit-Branch: master
Gerrit-Owner: Kaldari <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to