@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.

Fix paste

Summary:
The caching introduced by rP7e37eb48273eef87e6e6811703fb5d85a3e07a81
broke the use of PhabricatorPaste::getContent() for forking/editing
pastes and downloading pastes with arc paste. I think this fixes all
the appropriate callsites.

Test Plan: fork a paste in the web ui

Reviewers: vrana, epriestley, btrahan

Reviewed By: epriestley

CC: aran, Korvin

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

+3 -2
+1 -1
src/applications/paste/conduit/ConduitAPI_paste_Method.php
··· 17 17 'language' => $paste->getLanguage(), 18 18 'uri' => PhabricatorEnv::getProductionURI('/P'.$paste->getID()), 19 19 'parentPHID' => $paste->getParentPHID(), 20 - 'content' => $paste->getContent(), 20 + 'content' => $paste->getRawContent(), 21 21 ); 22 22 } 23 23
+2 -1
src/applications/paste/controller/PhabricatorPasteEditController.php
··· 28 28 ->setViewer($user) 29 29 ->withIDs(array($parent_id)) 30 30 ->needContent(true) 31 + ->needRawContent(true) 31 32 ->execute(); 32 33 $parent = head($parent); 33 34 ··· 95 96 if ($is_create && $parent) { 96 97 $paste->setTitle('Fork of '.$parent->getFullName()); 97 98 $paste->setLanguage($parent->getLanguage()); 98 - $text = $parent->getContent(); 99 + $text = $parent->getRawContent(); 99 100 } 100 101 } 101 102