Merge "watcheditem: Do not create the same TitleValue object twice"

This commit is contained in:
jenkins-bot 2019-06-10 20:27:02 +00:00 committed by Gerrit Code Review
commit 7810f6b626

View file

@ -641,7 +641,7 @@ class WatchedItemStore implements WatchedItemStoreInterface, StatsdAwareInterfac
// @todo: Should we add these to the process cache?
$watchedItems[] = new WatchedItem(
$user,
new TitleValue( (int)$row->wl_namespace, $row->wl_title ),
$target,
$this->getLatestNotificationTimestamp(
$row->wl_notificationtimestamp, $user, $target )
);