forked from GNUsocial/gnu-social
Shares would lack a title in any Activity representation
This commit is contained in:
parent
8674b51144
commit
e61e11a973
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user