@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 an unused feed story class

Summary: This class is no longer used after D7370.

Test Plan: `arc lint` and `arc unit`

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin, epriestley

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

-38
-2
src/__phutil_library_map__.php
··· 1720 1720 'PhabricatorFeedStoryPhriction' => 'applications/feed/story/PhabricatorFeedStoryPhriction.php', 1721 1721 'PhabricatorFeedStoryPublisher' => 'applications/feed/PhabricatorFeedStoryPublisher.php', 1722 1722 'PhabricatorFeedStoryReference' => 'applications/feed/storage/PhabricatorFeedStoryReference.php', 1723 - 'PhabricatorFeedStoryStatus' => 'applications/feed/story/PhabricatorFeedStoryStatus.php', 1724 1723 'PhabricatorFile' => 'applications/files/storage/PhabricatorFile.php', 1725 1724 'PhabricatorFileBundleLoader' => 'applications/files/query/PhabricatorFileBundleLoader.php', 1726 1725 'PhabricatorFileCommentController' => 'applications/files/controller/PhabricatorFileCommentController.php', ··· 4895 4894 'PhabricatorFeedStoryNotification' => 'PhabricatorFeedDAO', 4896 4895 'PhabricatorFeedStoryPhriction' => 'PhabricatorFeedStory', 4897 4896 'PhabricatorFeedStoryReference' => 'PhabricatorFeedDAO', 4898 - 'PhabricatorFeedStoryStatus' => 'PhabricatorFeedStory', 4899 4897 'PhabricatorFile' => array( 4900 4898 'PhabricatorFileDAO', 4901 4899 'PhabricatorApplicationTransactionInterface',
-36
src/applications/feed/story/PhabricatorFeedStoryStatus.php
··· 1 - <?php 2 - 3 - final class PhabricatorFeedStoryStatus extends PhabricatorFeedStory { 4 - 5 - public function getPrimaryObjectPHID() { 6 - return $this->getAuthorPHID(); 7 - } 8 - 9 - public function renderView() { 10 - $data = $this->getStoryData(); 11 - 12 - $author_phid = $data->getAuthorPHID(); 13 - 14 - $view = $this->newStoryView(); 15 - $view->setAppIcon('calendar-dark'); 16 - 17 - $view->setTitle($this->linkTo($author_phid)); 18 - $view->setImage($this->getHandle($author_phid)->getImageURI()); 19 - 20 - $content = $this->renderSummary($data->getValue('content'), $len = null); 21 - $view->appendChild($content); 22 - 23 - return $view; 24 - } 25 - 26 - public function renderText() { 27 - $author_handle = $this->getHandle($this->getPrimaryObjectPHID()); 28 - $author_name = $author_handle->getLinkName(); 29 - $author_uri = PhabricatorEnv::getURI($author_handle->getURI()); 30 - 31 - $text = pht('% updated their status %s', $author_name, $author_uri); 32 - 33 - return $text; 34 - } 35 - 36 - }