mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-10 23:01:04 +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;
|
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() {
|
public function getTransactionTypes() {
|
||||||
$types = parent::getTransactionTypes();
|
$types = parent::getTransactionTypes();
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,10 @@ final class PholioMockNameTransaction
|
||||||
return $object->getName();
|
return $object->getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getActionStrength() {
|
||||||
|
return 1.4;
|
||||||
|
}
|
||||||
|
|
||||||
public function applyInternalEffects($object, $value) {
|
public function applyInternalEffects($object, $value) {
|
||||||
$object->setName($value);
|
$object->setName($value);
|
||||||
if ($object->getOriginalName() === null) {
|
if ($object->getOriginalName() === null) {
|
||||||
|
|
Loading…
Reference in a new issue