mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-09-25 03:09:37 +00:00
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
This commit is contained in:
parent
f94f24dbc0
commit
77239e17de
|
@ -66,7 +66,7 @@ class ApiEchoNotifications extends ApiQueryBase {
|
|||
|
||||
// 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 );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue