Merge "Add BeforeResetNotificationTimestamp hook"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 5 Feb 2019 09:00:42 +0000 (09:00 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 5 Feb 2019 09:00:42 +0000 (09:00 +0000)
includes/watcheditem/WatchedItemStore.php

index 5f38775..8566895 100644 (file)
@@ -907,6 +907,10 @@ class WatchedItemStore implements WatchedItemStoreInterface, StatsdAwareInterfac
                        return false;
                }
 
+               if ( ! Hooks::run( 'BeforeResetNotificationTimestamp', [ &$user, &$title, $force, &$oldid ] ) ) {
+                       return false;
+               }
+
                $item = null;
                if ( $force != 'force' ) {
                        $item = $this->loadWatchedItem( $user, $title );