Skip to content

Commit 316b79a

Browse files
authoredOct 25, 2022
Bug 1797342: implement getApplicationTransactionTitleForFeed for DifferentialUpliftRequestCustomField.php (mozilla-conduit#33)
This will make `phab-bot` able to detect changes to the uplift request form.
1 parent b00c889 commit 316b79a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
 

‎moz-extensions/src/differential/customfield/DifferentialUpliftRequestCustomField.php

+17
Original file line numberDiff line numberDiff line change
@@ -496,5 +496,22 @@ public function getApplicationTransactionTitle(
496496

497497
return pht('%s updated the uplift request field.', $xaction->renderHandleLink($author_phid));
498498
}
499+
500+
public function getApplicationTransactionTitleForFeed(
501+
PhabricatorApplicationTransaction $xaction) {
502+
503+
if($this->proxy) {
504+
return $this->proxy->getApplicationTransactionTitle($xaction);
505+
}
506+
507+
$author_phid = $xaction->getAuthorPHID();
508+
$object_phid = $xaction->getObjectPHID();
509+
510+
return pht(
511+
'%s updated the uplift request field for %s.',
512+
$xaction->renderHandleLink($author_phid),
513+
$xaction->renderHandleLink($object_phid)
514+
);
515+
}
499516
}
500517

0 commit comments

Comments
 (0)
Failed to load comments.