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:
parent
652d87ac6b
commit
db546e5558
2 changed files with 12 additions and 0 deletions
|
@ -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();
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue