Make loadWatchedItem() coerce the DB timestamp to TS_MW
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 10 May 2017 01:41:22 +0000 (18:41 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 10 May 2017 01:41:22 +0000 (18:41 -0700)
Bug: T75174
Change-Id: Ie72bd17b424ba857d0b4a22227c9cffad0853050

includes/WatchedItemStore.php

index 17728fa..228f93b 100644 (file)
@@ -467,7 +467,7 @@ class WatchedItemStore implements StatsdAwareInterface {
                $item = new WatchedItem(
                        $user,
                        $target,
-                       $row->wl_notificationtimestamp
+                       wfTimestampOrNull( TS_MW, $row->wl_notificationtimestamp )
                );
                $this->cache( $item );