]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Bad variable reference in Fave class
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 14 Jul 2014 21:37:28 +0000 (23:37 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 14 Jul 2014 21:37:28 +0000 (23:37 +0200)
plugins/Favorite/classes/Fave.php

index f4e8c353f1fdcb5cc62b2478b2f3ab746b27290e..3703c844dadefae59ef897850bc9509b2455a5d4 100644 (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;
     }