forked from GNUsocial/gnu-social
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->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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user