Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13996914
D10850.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D10850.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Fri, Oct 25, 1:02 AM (2 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6747556
Default Alt Text
D10850.diff (1 KB)
Attached To
Mode
D10850: Phriction - restore diff link
Attached
Detach File
Event Timeline
Log In to Comment