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

Remove unused `PhrictionDocumentPreviewController` class

Summary: This class is no longer required after D6675.

Test Plan: `grep`

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

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

-28
-2
src/__phutil_library_map__.php
··· 2837 2837 'PhrictionDocumentController' => 'applications/phriction/controller/PhrictionDocumentController.php', 2838 2838 'PhrictionDocumentHeraldAdapter' => 'applications/phriction/herald/PhrictionDocumentHeraldAdapter.php', 2839 2839 'PhrictionDocumentPHIDType' => 'applications/phriction/phid/PhrictionDocumentPHIDType.php', 2840 - 'PhrictionDocumentPreviewController' => 'applications/phriction/controller/PhrictionDocumentPreviewController.php', 2841 2840 'PhrictionDocumentQuery' => 'applications/phriction/query/PhrictionDocumentQuery.php', 2842 2841 'PhrictionDocumentStatus' => 'applications/phriction/constants/PhrictionDocumentStatus.php', 2843 2842 'PhrictionEditConduitAPIMethod' => 'applications/phriction/conduit/PhrictionEditConduitAPIMethod.php', ··· 6160 6159 'PhrictionDocumentController' => 'PhrictionController', 6161 6160 'PhrictionDocumentHeraldAdapter' => 'HeraldAdapter', 6162 6161 'PhrictionDocumentPHIDType' => 'PhabricatorPHIDType', 6163 - 'PhrictionDocumentPreviewController' => 'PhrictionController', 6164 6162 'PhrictionDocumentQuery' => 'PhabricatorCursorPagedPolicyAwareQuery', 6165 6163 'PhrictionDocumentStatus' => 'PhrictionConstants', 6166 6164 'PhrictionEditConduitAPIMethod' => 'PhrictionConduitAPIMethod',
-26
src/applications/phriction/controller/PhrictionDocumentPreviewController.php
··· 1 - <?php 2 - 3 - final class PhrictionDocumentPreviewController 4 - extends PhrictionController { 5 - 6 - public function processRequest() { 7 - $request = $this->getRequest(); 8 - $document = $request->getStr('document'); 9 - 10 - $draft_key = $request->getStr('draftkey'); 11 - if ($draft_key) { 12 - id(new PhabricatorDraft()) 13 - ->setAuthorPHID($request->getUser()->getPHID()) 14 - ->setDraftKey($draft_key) 15 - ->setDraft($document) 16 - ->replaceOrDelete(); 17 - } 18 - 19 - $content_obj = new PhrictionContent(); 20 - $content_obj->setContent($document); 21 - $content = $content_obj->renderContent($request->getUser()); 22 - 23 - return id(new AphrontAjaxResponse())->setContent($content); 24 - } 25 - 26 - }