From: Mikael Nordfeldth Date: Tue, 13 Oct 2015 21:18:13 +0000 (+0200) Subject: Wrong variable names in SharePlugin X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=65adefe1701d78742fd30a760b78fcd4c4b4fa31;p=quix0rs-gnu-social.git Wrong variable names in SharePlugin --- diff --git a/plugins/Share/SharePlugin.php b/plugins/Share/SharePlugin.php index 70e1395792..1e6f93dfa1 100644 --- a/plugins/Share/SharePlugin.php +++ b/plugins/Share/SharePlugin.php @@ -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; }