diff --git a/src/applications/phriction/editor/PhrictionTransactionEditor.php b/src/applications/phriction/editor/PhrictionTransactionEditor.php index d8c8bc1730..c5c6498b85 100644 --- a/src/applications/phriction/editor/PhrictionTransactionEditor.php +++ b/src/applications/phriction/editor/PhrictionTransactionEditor.php @@ -405,6 +405,24 @@ final class PhrictionTransactionEditor $body->addTextSection( pht('DOCUMENT CONTENT'), $object->getContent()->getContent()); + } else { + + foreach ($xactions as $xaction) { + switch ($xaction->getTransactionType()) { + case PhrictionTransaction::TYPE_CONTENT: + $diff_uri = id(new PhutilURI( + '/phriction/diff/'.$object->getID().'/')) + ->alter('l', $this->getOldContent()->getVersion()) + ->alter('r', $this->getNewContent()->getVersion()); + $body->addLinkSection( + pht('DOCUMENT DIFF'), + PhabricatorEnv::getProductionURI($diff_uri)); + break 2; + default: + break; + } + } + } $body->addLinkSection(