Mooeypoo has uploaded a new change for review.
https://gerrit.wikimedia.org/r/265641
Change subject: Don't auto mark notifications as read in Special:Notifications
......................................................................
Don't auto mark notifications as read in Special:Notifications
Bug: T115528
Change-Id: I5947490f0b041cd58b9018c9419cc65bcbe8e12b
---
M includes/special/SpecialNotifications.php
1 file changed, 0 insertions(+), 4 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Echo
refs/changes/41/265641/1
diff --git a/includes/special/SpecialNotifications.php
b/includes/special/SpecialNotifications.php
index 3d642b0..65d571b 100644
--- a/includes/special/SpecialNotifications.php
+++ b/includes/special/SpecialNotifications.php
@@ -135,10 +135,6 @@
$out->addModuleStyles( array( 'ext.echo.styles.notifications',
'ext.echo.styles.special' ) );
DeferredUpdates::addCallableUpdate( function () use ( $user,
$echoSeenTime, $unread ) {
- // Mark items as read
- if ( $unread ) {
- MWEchoNotifUser::newFromUser( $user
)->markRead( $unread );
- }
// Record time notifications have been seen
$echoSeenTime->setTime( wfTimestamp( TS_MW ) );
} );
--
To view, visit https://gerrit.wikimedia.org/r/265641
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5947490f0b041cd58b9018c9419cc65bcbe8e12b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Echo
Gerrit-Branch: master
Gerrit-Owner: Mooeypoo <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits