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

Render Remarkup poorly in Phame Feed stories

Summary: Seeing if this is the correct path, then will apply in Pholio, Ponder.

Test Plan: epriestley

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: joshuaspence, Korvin

Maniphest Tasks: T9825

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

+12 -6
+2 -6
src/applications/phame/storage/PhamePostTransaction.php
··· 185 185 return parent::getTitleForFeed(); 186 186 } 187 187 188 - public function getBodyForFeed(PhabricatorFeedStory $story) { 188 + public function getRemarkupBodyForFeed(PhabricatorFeedStory $story) { 189 189 $text = null; 190 190 switch ($this->getTransactionType()) { 191 191 case self::TYPE_TITLE: ··· 205 205 break; 206 206 } 207 207 208 - if (strlen($text)) { 209 - return PhabricatorMarkupEngine::summarize($text); 210 - } 211 - 212 - return parent::getBodyForFeed($story); 208 + return $text; 213 209 } 214 210 215 211 public function getColor() {
+10
src/applications/transactions/storage/PhabricatorApplicationTransaction.php
··· 964 964 } 965 965 966 966 public function getBodyForFeed(PhabricatorFeedStory $story) { 967 + $remarkup = $this->getRemarkupBodyForFeed($story); 968 + if ($remarkup !== null) { 969 + $remarkup = PhabricatorMarkupEngine::summarize($remarkup); 970 + return new PHUIRemarkupView($this->viewer, $remarkup); 971 + } 972 + 967 973 $old = $this->getOldValue(); 968 974 $new = $this->getNewValue(); 969 975 ··· 979 985 } 980 986 981 987 return $body; 988 + } 989 + 990 + public function getRemarkupBodyForFeed(PhabricatorFeedStory $story) { 991 + return null; 982 992 } 983 993 984 994 public function getActionStrength() {