Shares would lack a title in any Activity representation

This commit is contained in:
Mikael Nordfeldth 2014-07-30 00:17:22 +02:00
parent 8674b51144
commit e61e11a973
1 changed files with 5 additions and 0 deletions

View File

@ -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 {