Wrong variable names in SharePlugin
This commit is contained in:
parent
4b69ef41e2
commit
65adefe170
@ -170,14 +170,14 @@ class SharePlugin extends ActivityVerbHandlerPlugin
|
|||||||
$act->objects[] = $target->asActivity($scoped);
|
$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
|
// Repeat is a little bit special. As it's an activity, our
|
||||||
// ActivityObject is instead turned into an Activity
|
// ActivityObject is instead turned into an Activity
|
||||||
$object = new Activity();
|
$object = new Activity();
|
||||||
$object->verb = ActivityVerb::SHARE;
|
$object->verb = ActivityVerb::SHARE;
|
||||||
$object->content = $notice->rendered;
|
$object->content = $stored->rendered;
|
||||||
$this->extendActivity($stored, $act);
|
$this->extendActivity($stored, $object);
|
||||||
|
|
||||||
return $object;
|
return $object;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user