Kaldari has submitted this change and it was merged.

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


Allow mention notifications from project pages

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

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

Approvals:
  Alex Monk: Looks good to me, approved
  Kaldari: Verified; Looks good to me, approved



diff --git a/Hooks.php b/Hooks.php
index 079919e..a0f1bd9 100644
--- a/Hooks.php
+++ b/Hooks.php
@@ -403,7 +403,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: merged
Gerrit-Change-Id: If4e404b4fc8f4e16800f340f9a1050f66f663213
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/Echo
Gerrit-Branch: master
Gerrit-Owner: Kaldari <[email protected]>
Gerrit-Reviewer: Alex Monk <[email protected]>
Gerrit-Reviewer: Bsitu <[email protected]>
Gerrit-Reviewer: Kaldari <[email protected]>
Gerrit-Reviewer: Lwelling <[email protected]>
Gerrit-Reviewer: MZMcBride <[email protected]>
Gerrit-Reviewer: OliverKeyes <[email protected]>
Gerrit-Reviewer: jenkins-bot

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

Reply via email to