Wrong variable names in SharePlugin

This commit is contained in:
Mikael Nordfeldth 2015-10-13 23:18:13 +02:00
parent 4b69ef41e2
commit 65adefe170

View 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;
}