Page MenuHomePhabricator

D10850.diff
No OneTemporary

D10850.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
Mon, Nov 11, 1:12 PM (2 d, 16 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6747556
Default Alt Text
D10850.diff (1 KB)

Event Timeline