]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Shares would lack a title in any Activity representation
authorMikael Nordfeldth <mmn@hethane.se>
Tue, 29 Jul 2014 22:17:22 +0000 (00:17 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Tue, 29 Jul 2014 22:17:22 +0000 (00:17 +0200)
classes/Notice.php

index 3a71e4161f762b2e8f32db60a69b177161d86e15..b6f480ed5ef2ce9a8860cd0f797bf0e04e97df5f 100644 (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 {