1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-22 13:30:55 +01:00

Phriction: define an object creation title

Test Plan:
* Create a new phriction document, observe the history
* Apply this patch
* Observe the history again, noting that the word "document" now replaces "object"

Reviewers: O1 Blessed Committers, avivey

Reviewed By: O1 Blessed Committers, avivey

Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Differential Revision: https://we.phorge.it/D25858
This commit is contained in:
mainframe98 2024-12-19 19:07:01 +01:00
parent 18336f0b9a
commit 48a74638a7

View file

@ -108,6 +108,14 @@ final class PhrictionTransactionEditor
return $types;
}
public function getCreateObjectTitle($author, $object) {
return pht('%s created this document.', $author);
}
public function getCreateObjectTitleForFeed($author, $object) {
return pht('%s created %s.', $author, $object);
}
protected function expandTransactions(
PhabricatorLiskDAO $object,
array $xactions) {