Page MenuHomePhabricator

D18246.id43881.diff
No OneTemporary

D18246.id43881.diff

diff --git a/src/applications/pholio/editor/PholioMockEditor.php b/src/applications/pholio/editor/PholioMockEditor.php
--- a/src/applications/pholio/editor/PholioMockEditor.php
+++ b/src/applications/pholio/editor/PholioMockEditor.php
@@ -22,6 +22,14 @@
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();
diff --git a/src/applications/pholio/xaction/PholioMockNameTransaction.php b/src/applications/pholio/xaction/PholioMockNameTransaction.php
--- a/src/applications/pholio/xaction/PholioMockNameTransaction.php
+++ b/src/applications/pholio/xaction/PholioMockNameTransaction.php
@@ -9,6 +9,10 @@
return $object->getName();
}
+ public function getActionStrength() {
+ return 1.4;
+ }
+
public function applyInternalEffects($object, $value) {
$object->setName($value);
if ($object->getOriginalName() === null) {

File Metadata

Mime Type
text/plain
Expires
Wed, Oct 23, 2:50 AM (3 w, 1 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6739570
Default Alt Text
D18246.id43881.diff (1 KB)

Event Timeline