]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Wrong variable names in SharePlugin
authorMikael Nordfeldth <mmn@hethane.se>
Tue, 13 Oct 2015 21:18:13 +0000 (23:18 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Tue, 13 Oct 2015 21:18:13 +0000 (23:18 +0200)
plugins/Share/SharePlugin.php

index 70e1395792266091648d0e5472331575148d6307..1e6f93dfa1fc31b63dfdc9b5c610a86282e6c28b 100644 (file)
@@ -170,14 +170,14 @@ class SharePlugin extends ActivityVerbHandlerPlugin
         $act->objects[] = $target->asActivity($scoped);
     }
 
-    public function activityObjectFromNotice(Notice $notice)
+    public function activityObjectFromNotice(Notice $stored)
     {
         // Repeat is a little bit special. As it's an activity, our
         // ActivityObject is instead turned into an Activity
         $object          = new Activity();
         $object->verb    = ActivityVerb::SHARE;
-        $object->content = $notice->rendered;
-        $this->extendActivity($stored, $act);
+        $object->content = $stored->rendered;
+        $this->extendActivity($stored, $object);
 
         return $object;
     }