From e61e11a97337d5b03a97b130afa1c7af6b03df00 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Wed, 30 Jul 2014 00:17:22 +0200 Subject: [PATCH] Shares would lack a title in any Activity representation --- classes/Notice.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/classes/Notice.php b/classes/Notice.php index 3a71e4161f..b6f480ed5e 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -1773,6 +1773,11 @@ class Notice extends Managed_DataObject if ($this->repeat_of) { $repeated = Notice::getKV('id', $this->repeat_of); if ($repeated instanceof Notice) { + // TRANS: A repeat activity's title. %1$s is repeater's nickname + // and %2$s is the repeated user's nickname. + $act->title = sprintf(_('%1$s repeated a notice by %2$s'), + $this->getProfile()->getNickname(), + $repeated->getProfile()->getNickname()); $act->objects[] = $repeated->asActivity($scoped); } } else { -- 2.39.5