Bad ActivityObject generation of Fave
This commit is contained in:
parent
182605cb6a
commit
57a2d7a0e2
@ -297,12 +297,12 @@ class Fave extends Managed_DataObject
|
|||||||
{
|
{
|
||||||
$actobj = new ActivityObject();
|
$actobj = new ActivityObject();
|
||||||
$actobj->id = $this->getUri();
|
$actobj->id = $this->getUri();
|
||||||
$actobj->type = ActivityUtils::resolveUri(ActivityObject::ACTIVITY);
|
$actobj->type = ActivityUtils::resolveUri($this->getObjectType());
|
||||||
$actobj->actor = $this->getActorObject();
|
$actobj->actor = $this->getActorObject();
|
||||||
|
$actobj->target = $this->getTarget()->asActivityObject();
|
||||||
$actobj->objects = array(clone($actobj->target));
|
$actobj->objects = array(clone($actobj->target));
|
||||||
$actobj->title = Stored_ActivityVerb::verbToTitle($this->verb);
|
$actobj->title = Stored_ActivityVerb::verbToTitle($this->verb);
|
||||||
//$actobj->verb = $this->verb;
|
$actobj->verb = ActivityVerb::FAVORITE;
|
||||||
//$actobj->target = $this->getTargetObject();
|
|
||||||
return $actobj;
|
return $actobj;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user