EBernhardson (WMF) has uploaded a new change for review. https://gerrit.wikimedia.org/r/83033
Change subject: Display the correct info in notifications ...................................................................... Display the correct info in notifications Notifications were incorrectly displaying the notified user, rather than the user that performed an action triggering the notification. Change-Id: Ib2fdeb5e6a2391dbf8a638ac643e089180dc00db --- M Hooks.php M includes/NotificationFormatter.php 2 files changed, 6 insertions(+), 6 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow refs/changes/33/83033/1 diff --git a/Hooks.php b/Hooks.php index 63d695c..d3c285a 100644 --- a/Hooks.php +++ b/Hooks.php @@ -22,30 +22,30 @@ $wgEchoNotifications['flow-new-topic'] = array( 'title-message' => 'flow-notification-newtopic', - 'title-params' => array( 'user', 'flow-title', 'title', 'subject', 'topic-permalink' ), + 'title-params' => array( 'agent', 'flow-title', 'title', 'subject', 'topic-permalink' ), 'payload' => array( 'comment-text' ), ) + $notificationTemplate; $wgEchoNotifications['flow-post-reply'] = array( 'title-message' => 'flow-notification-reply', - 'title-params' => array( 'user', 'subject', 'flow-title', 'title', 'post-permalink' ), + 'title-params' => array( 'agent', 'subject', 'flow-title', 'title', 'post-permalink' ), 'payload' => array( 'comment-text' ), ) + $notificationTemplate; $wgEchoNotifications['flow-post-edited'] = array( 'title-message' => 'flow-notification-edit', - 'title-params' => array( 'user', 'subject', 'flow-title', 'title', 'post-permalink' ), + 'title-params' => array( 'agent', 'subject', 'flow-title', 'title', 'post-permalink' ), ) + $notificationTemplate; // Saving for a rainy day // $wgEchoNotifications['flow-post-moderated'] = array( // 'title-message' => 'flow-notification-moderated', - // 'title-params' => array( 'user', 'subject', 'flow-title', 'title', 'post-permalink' ), + // 'title-params' => array( 'agent', 'subject', 'flow-title', 'title', 'post-permalink' ), // ) + $notificationTemplate; $wgEchoNotifications['flow-topic-renamed'] = array( 'title-message' => 'flow-notification-rename', - 'title-params' => array( 'user', 'topic-permalink', 'old-subject', 'new-subject', 'flow-title', 'title' ), + 'title-params' => array( 'agent', 'topic-permalink', 'old-subject', 'new-subject', 'flow-title', 'title' ), ) + $notificationTemplate; $wgEchoNotificationIcons['flow-discussion'] = array( diff --git a/includes/NotificationFormatter.php b/includes/NotificationFormatter.php index 7053a9f..5fb5074 100644 --- a/includes/NotificationFormatter.php +++ b/includes/NotificationFormatter.php @@ -64,4 +64,4 @@ parent::processParam( $event, $param, $message, $user ); } } -} \ No newline at end of file +} -- To view, visit https://gerrit.wikimedia.org/r/83033 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ib2fdeb5e6a2391dbf8a638ac643e089180dc00db Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Flow Gerrit-Branch: master Gerrit-Owner: EBernhardson (WMF) <ebernhard...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits