@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Phriction - restore diff link

Summary: Fixes T6472. I was curious to see how many reports we'd get but we didn't get any I know of... Still, this is a nice convenient link.

Test Plan:
edited a wiki doc title + body. ran /bin/mail to see the body and liked what I saw

```TEXT BODY
btrahan changed the title from "new title is a good thing" to "new title is a good thing asdsadsadsadsada".
btrahan edited the document content.

DOCUMENT DIFF
http://phalanx.dev/phriction/diff/36/?l=3&r=4

DOCUMENT DETAIL
http://phalanx.dev/w/```

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin, epriestley

Maniphest Tasks: T6472

Differential Revision: https://secure.phabricator.com/D10850

+18
+18
src/applications/phriction/editor/PhrictionTransactionEditor.php
··· 405 405 $body->addTextSection( 406 406 pht('DOCUMENT CONTENT'), 407 407 $object->getContent()->getContent()); 408 + } else { 409 + 410 + foreach ($xactions as $xaction) { 411 + switch ($xaction->getTransactionType()) { 412 + case PhrictionTransaction::TYPE_CONTENT: 413 + $diff_uri = id(new PhutilURI( 414 + '/phriction/diff/'.$object->getID().'/')) 415 + ->alter('l', $this->getOldContent()->getVersion()) 416 + ->alter('r', $this->getNewContent()->getVersion()); 417 + $body->addLinkSection( 418 + pht('DOCUMENT DIFF'), 419 + PhabricatorEnv::getProductionURI($diff_uri)); 420 + break 2; 421 + default: 422 + break; 423 + } 424 + } 425 + 408 426 } 409 427 410 428 $body->addLinkSection(