1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 05:50:55 +01:00

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
This commit is contained in:
Chad Little 2017-07-19 10:47:22 -07:00
parent 652d87ac6b
commit db546e5558
2 changed files with 12 additions and 0 deletions

View file

@ -22,6 +22,14 @@ final class PholioMockEditor extends PhabricatorApplicationTransactionEditor {
return $this->newImages;
}
public function getCreateObjectTitle($author, $object) {
return pht('%s created this mock.', $author);
}
public function getCreateObjectTitleForFeed($author, $object) {
return pht('%s created %s.', $author, $object);
}
public function getTransactionTypes() {
$types = parent::getTransactionTypes();

View file

@ -9,6 +9,10 @@ final class PholioMockNameTransaction
return $object->getName();
}
public function getActionStrength() {
return 1.4;
}
public function applyInternalEffects($object, $value) {
$object->setName($value);
if ($object->getOriginalName() === null) {