Kmuthu has uploaded a new change for review.

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

Change subject: MassMessage flow mention fixed
......................................................................

MassMessage flow mention fixed

Bug: T86812
Change-Id: I4eaf454e8bb9d662a9037532e3be964823c2f42b
---
M MassMessage.hooks.php
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MassMessage 
refs/changes/54/311854/1

diff --git a/MassMessage.hooks.php b/MassMessage.hooks.php
index a61cd01..4e742ee 100644
--- a/MassMessage.hooks.php
+++ b/MassMessage.hooks.php
@@ -137,7 +137,8 @@
         */
        public static function onBeforeEchoEventInsert( EchoEvent $event ) {
                // Don't spam a user with mention notifications if it's a 
MassMessage
-               if ( $event->getType() == 'mention' && $event->getAgent() && // 
getAgent() can return null
+               if ( ( $event->getType() == 'mention' || $event->getType() == 
'flow-mention' ) &&
+            $event->getAgent() && // getAgent() can return null
                        $event->getAgent()->getId() == 
MassMessage::getMessengerUser()->getId() ) {
                        return false;
                }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4eaf454e8bb9d662a9037532e3be964823c2f42b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MassMessage
Gerrit-Branch: master
Gerrit-Owner: Kmuthu <kmu...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to