Don't display inline comment's Reply in standalone view

Summary: NOTE: This is starting to be too hacky.

Test Plan:
View revision with inline diffs, verify that Reply is there.
View standalone - no Reply.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Koolvin

Differential Revision: https://secure.phabricator.com/D2263
This commit is contained in:
vrana
2012-04-17 21:18:30 -07:00
parent dec8acd803
commit 7e571994bc
3 changed files with 26 additions and 14 deletions

View File

@@ -1497,6 +1497,7 @@ final class DifferentialChangesetParser {
$edit = $user &&
($comment->getAuthorPHID() == $user->getPHID()) &&
($comment->isDraft());
$allow_reply = (bool)$this->user;
$on_right = $this->isCommentOnRightSideWhenDisplayed($comment);
@@ -1506,6 +1507,7 @@ final class DifferentialChangesetParser {
->setHandles($this->handles)
->setMarkupEngine($this->markupEngine)
->setEditable($edit)
->setAllowReply($allow_reply)
->render();
}