Page MenuHomePhabricator

D10850.id26047.diff
No OneTemporary

D10850.id26047.diff

diff --git a/src/applications/phriction/editor/PhrictionTransactionEditor.php b/src/applications/phriction/editor/PhrictionTransactionEditor.php
--- a/src/applications/phriction/editor/PhrictionTransactionEditor.php
+++ b/src/applications/phriction/editor/PhrictionTransactionEditor.php
@@ -405,6 +405,24 @@
$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(

File Metadata

Mime Type
text/plain
Expires
Thu, Oct 31, 4:02 AM (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6747556
Default Alt Text
D10850.id26047.diff (1 KB)

Event Timeline