Bad ActivityObject generation of Fave

This commit is contained in:
Mikael Nordfeldth 2014-07-05 00:15:22 +02:00
parent 182605cb6a
commit 57a2d7a0e2

View File

@ -297,12 +297,12 @@ class Fave extends Managed_DataObject
{
$actobj = new ActivityObject();
$actobj->id = $this->getUri();
$actobj->type = ActivityUtils::resolveUri(ActivityObject::ACTIVITY);
$actobj->type = ActivityUtils::resolveUri($this->getObjectType());
$actobj->actor = $this->getActorObject();
$actobj->target = $this->getTarget()->asActivityObject();
$actobj->objects = array(clone($actobj->target));
$actobj->title = Stored_ActivityVerb::verbToTitle($this->verb);
//$actobj->verb = $this->verb;
//$actobj->target = $this->getTargetObject();
$actobj->verb = ActivityVerb::FAVORITE;
return $actobj;
}