]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/Notice.php
Initial work on making the Share verb handled in plugin
[quix0rs-gnu-social.git] / classes / Notice.php
index 61b18a8710a3f44f1bc413db414bcb0503d2cf51..8162dddc85baa049966918797577f41ffc414195 100644 (file)
@@ -1818,17 +1818,7 @@ class Notice extends Managed_DataObject
 
             $act->verb = $this->verb;
 
-            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 {
+            if (!$this->repeat_of) {
                 $act->objects[] = $this->asActivityObject();
             }