r52368 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r52367‎ | r52368 | r52369 >
Date:17:39, 24 June 2009
Author:werdna
Status:deferred
Tags:
Comment:
Fix detection of different users for EDITED_BY_OTHERS
Modified paths:
  • /trunk/extensions/LiquidThreads/classes/LqtThread.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LiquidThreads/classes/LqtThread.php
@@ -136,7 +136,9 @@
137137 $this->editedness = Threads::EDITED_HAS_REPLY;
138138 }
139139 else if ( $change_type == Threads::CHANGE_EDITED_ROOT ) {
140 - if ( $wgUser->getId() == 0 || $wgUser->getId() != $this->root()->originalAuthor()->getId() ) {
 140+ $originalAuthor = $this->root()->originalAuthor();
 141+ if ( ( $wgUser->getId() == 0 && $originalAuthor->getName() != $wgUser->getName() )
 142+ || $wgUser->getId() != $originalAuthor->getId() ) {
141143 $this->editedness = Threads::EDITED_BY_OTHERS;
142144 } else if ( $this->editedness == Threads::EDITED_HAS_REPLY ) {
143145 $this->editedness = Threads::EDITED_BY_AUTHOR;

Status & tagging log