Merge "Add BeforeResetNotificationTimestamp hook"
[lhc/web/wiklou.git] / 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 );