jenkins-bot has submitted this change and it was merged.
Change subject: Fix a function param in API
......................................................................
Fix a function param in API
The distributionType is still passed to the function, it will
be arry of event types in next patch
Change-Id: Ieae7cfc383c2a024256f7e6b2f91d3b5c323f79b
---
M api/ApiEchoNotifications.php
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Bsitu: Looks good to me, but someone else must approve
EBernhardson: Looks good to me, approved
jenkins-bot: Verified
diff --git a/api/ApiEchoNotifications.php b/api/ApiEchoNotifications.php
index 4534d8c..939cfac 100644
--- a/api/ApiEchoNotifications.php
+++ b/api/ApiEchoNotifications.php
@@ -66,7 +66,7 @@
// Fetch the result for the event types above
$notifMapper = new EchoNotificationMapper(
MWEchoDbFactory::newFromDefault() );
- $notifs = $notifMapper->fetchByUser( $user, $limit + 1,
$continue, $eventTypesToLoad );
+ $notifs = $notifMapper->fetchByUser( $user, $limit + 1,
$continue, 'web' );
foreach ( $notifs as $notif ) {
$result['list'][$notif->getEvent()->getID()] =
EchoDataOutputFormatter::formatOutput( $notif, $format, $user );
}
--
To view, visit https://gerrit.wikimedia.org/r/150876
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ieae7cfc383c2a024256f7e6b2f91d3b5c323f79b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Echo
Gerrit-Branch: master
Gerrit-Owner: Bsitu <[email protected]>
Gerrit-Reviewer: Bsitu <[email protected]>
Gerrit-Reviewer: EBernhardson <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits