EBernhardson has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/159400

Change subject: Update wl_notificationtimestamp when updating Flow page
......................................................................

Update wl_notificationtimestamp when updating Flow page

Requires Iae213b87706c447b880244711e7747954423bb69 to be merged
in core first.

There may still be interaction issues with if we want to be doing
the watchlist for the Topic or the Board, but that can be worked
out separately.

Bug: 66876
Change-Id: I14320b747d16b7be652da05bda59fdf4e8eece81
---
M Hooks.php
1 file changed, 9 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow 
refs/changes/00/159400/1

diff --git a/Hooks.php b/Hooks.php
index 9aa31a5..6b49ba8 100644
--- a/Hooks.php
+++ b/Hooks.php
@@ -609,6 +609,15 @@
         */
        public static function onAbortEmailNotification( $editor, $title ) {
                if ( self::$occupationController->isTalkpageOccupied( $title ) 
) {
+                       // Since we are aborting the notification we need to 
manually update the watchlist
+                       $dbw = wfGetDB( DB_MASTER );
+                       EmailNotification::updateWatchlist(
+                               $dbw,
+                               wfTimestampNow(),
+                               EmailNotification::getWatchers( $dbw, $editor, 
$title ),
+                               $title
+                       );
+
                        return false;
                }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/159400
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I14320b747d16b7be652da05bda59fdf4e8eece81
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: EBernhardson <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to