jenkins-bot has submitted this change and it was merged.

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


MassMessage flow mention fixed

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

Approvals:
  Catrope: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/MassMessage.hooks.php b/MassMessage.hooks.php
index a61cd01..07d31aa 100644
--- a/MassMessage.hooks.php
+++ b/MassMessage.hooks.php
@@ -137,8 +137,9 @@
         */
        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
-                       $event->getAgent()->getId() == 
MassMessage::getMessengerUser()->getId() ) {
+               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: merged
Gerrit-Change-Id: I4eaf454e8bb9d662a9037532e3be964823c2f42b
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/MassMessage
Gerrit-Branch: master
Gerrit-Owner: Kmuthu <kmu...@wikimedia.org>
Gerrit-Reviewer: Catrope <roan.katt...@gmail.com>
Gerrit-Reviewer: Legoktm <legoktm.wikipe...@gmail.com>
Gerrit-Reviewer: Wctaiwan <wctai...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to