From 48a74638a78d465fef71558b5b52ce761540f226 Mon Sep 17 00:00:00 2001 From: mainframe98 Date: Thu, 19 Dec 2024 19:07:01 +0100 Subject: [PATCH] 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 --- .../phriction/editor/PhrictionTransactionEditor.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/applications/phriction/editor/PhrictionTransactionEditor.php b/src/applications/phriction/editor/PhrictionTransactionEditor.php index da6bd30b6c..2293a236a6 100644 --- a/src/applications/phriction/editor/PhrictionTransactionEditor.php +++ b/src/applications/phriction/editor/PhrictionTransactionEditor.php @@ -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) {