From efa8846731f69b4e09ef0492d8ba9e8c59a2355d Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Tue, 24 May 2016 15:51:17 -0700 Subject: [PATCH] Use Revision::RAW when checking whether the author of a revision mentioned themselves It's probably not realistically possible for a revision to be oversighted by the time generateMentionEvents() runs, but for consistency we should be using RAW here. Change-Id: If73b4abe5fbae5cadb75c5e09137299873f2a764 --- includes/DiscussionParser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/DiscussionParser.php b/includes/DiscussionParser.php index 4a8e636e6..86a416bf8 100644 --- a/includes/DiscussionParser.php +++ b/includes/DiscussionParser.php @@ -156,7 +156,7 @@ abstract class EchoDiscussionParser { continue; } // 2. the user mentions themselves - if ( $user->getId() == $revision->getUser() ) { + if ( $user->getId() == $revision->getUser( Revision::RAW ) ) { $stats->increment( 'echo.event.mention.error.sameUser' ); continue; }