From: Mikael Nordfeldth Date: Tue, 29 Jul 2014 22:17:22 +0000 (+0200) Subject: Shares would lack a title in any Activity representation X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e61e11a97337d5b03a97b130afa1c7af6b03df00;p=quix0rs-gnu-social.git Shares would lack a title in any Activity representation --- 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 {