From 05e2726ec8c96ee33514e1c854ae6d8f032feaf2 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 9 Oct 2008 03:41:29 +0000 Subject: [PATCH] Stop watchlist links from hoping around from bold to non-bold --- includes/UserMailer.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/UserMailer.php b/includes/UserMailer.php index 561ad1d3c3..05ad2b6e62 100644 --- a/includes/UserMailer.php +++ b/includes/UserMailer.php @@ -399,7 +399,9 @@ class EmailNotification { $this->sendMails(); - if ( $wgShowUpdatedMarker || $wgEnotifWatchlist ) { + $latestTimestamp = Revision::getTimestampFromId( $title->getLatestRevID() ); + // Do not update watchlists if something else already did. + if ( $timestamp >= $latestTimestamp && ($wgShowUpdatedMarker || $wgEnotifWatchlist) ) { # Mark the changed watch-listed page with a timestamp, so that the page is # listed with an "updated since your last visit" icon in the watch list. Do # not do this to users for their own edits. -- 2.20.1