watchlist: fix nonsensical timestamp/boolean comparisons in EnhancedRecentChanges
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 10 May 2019 00:59:04 +0000 (17:59 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 10 May 2019 01:27:02 +0000 (18:27 -0700)
commitbc272498298816c3095dda19dc9602629590484b
tree32e512defad6de7ab46de4627b151d8330db12cc
parent8f7ee6a4cfa002cb3025857093d44e0fb9529c76
watchlist: fix nonsensical timestamp/boolean comparisons in EnhancedRecentChanges

Also fix bug where the "changes since last visit" counter failed to show for pages
where their entire history is still in recent changes. Although the "new" flag is
set for the RCCacheEntry block, there can still be multiple revisions since the
last one seen by the user. This change accounts for that case.

Bug: T218511
Change-Id: I92060bd26d8642937cad7f8c1ace3c5e066790be
includes/changes/EnhancedChangesList.php
includes/specials/SpecialWatchlist.php