@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 (again)

Summary:
I messed up D4244 (and didn't test it properly) - this change should load
the raw content so we can use it.

Test Plan: use the conduit console and actually test the paste conduit methods

Reviewers: vrana, epriestley, btrahan

Reviewed By: epriestley

CC: aran, Korvin

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

+3 -3
+1 -1
src/applications/paste/conduit/ConduitAPI_paste_create_Method.php
··· 57 57 $paste->setViewPolicy(PhabricatorPolicies::POLICY_USER); 58 58 $paste->save(); 59 59 60 - $paste->attachContent($content); 60 + $paste->attachRawContent($content); 61 61 62 62 return $this->buildPasteInfoDictionary($paste); 63 63 }
+1 -1
src/applications/paste/conduit/ConduitAPI_paste_info_Method.php
··· 38 38 $paste = id(new PhabricatorPasteQuery()) 39 39 ->setViewer($request->getUser()) 40 40 ->withIDs(array($paste_id)) 41 - ->needContent(true) 41 + ->needRawContent(true) 42 42 ->executeOne(); 43 43 if (!$paste) { 44 44 throw new ConduitException('ERR_BAD_PASTE');
+1 -1
src/applications/paste/conduit/ConduitAPI_paste_query_Method.php
··· 30 30 protected function execute(ConduitAPIRequest $request) { 31 31 $query = id(new PhabricatorPasteQuery()) 32 32 ->setViewer($request->getUser()) 33 - ->needContent(true); 33 + ->needRawContent(true); 34 34 35 35 if ($request->getValue('ids')) { 36 36 $query->withIDs($request->getValue('ids'));