Bad variable reference in Fave class

This commit is contained in:
Mikael Nordfeldth 2014-07-14 23:37:28 +02:00
parent eb955fe629
commit 31d53ede91

View File

@ -286,7 +286,7 @@ class Fave extends Managed_DataObject
$actobj->objects = array(clone($actobj->target));
$actobj->verb = ActivityVerb::FAVORITE;
$actobj->title = ActivityUtils::verbToTitle($actobj->verb);
$actobj->content = $target->rendered ?: $target->content;
$actobj->content = $this->getTarget()->rendered ?: $this->getTarget()->content;
return $actobj;
}