@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 Pholio new mock feed story

Summary: Gives some strength to name (needed to over-ride new images) and new create copy.

Test Plan: Create a new mock, see proper story in feed.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

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

+12
+8
src/applications/pholio/editor/PholioMockEditor.php
··· 22 22 return $this->newImages; 23 23 } 24 24 25 + public function getCreateObjectTitle($author, $object) { 26 + return pht('%s created this mock.', $author); 27 + } 28 + 29 + public function getCreateObjectTitleForFeed($author, $object) { 30 + return pht('%s created %s.', $author, $object); 31 + } 32 + 25 33 public function getTransactionTypes() { 26 34 $types = parent::getTransactionTypes(); 27 35
+4
src/applications/pholio/xaction/PholioMockNameTransaction.php
··· 9 9 return $object->getName(); 10 10 } 11 11 12 + public function getActionStrength() { 13 + return 1.4; 14 + } 15 + 12 16 public function applyInternalEffects($object, $value) { 13 17 $object->setName($value); 14 18 if ($object->getOriginalName() === null) {