From: Mikael Nordfeldth Date: Fri, 2 Oct 2015 22:43:34 +0000 (+0200) Subject: Shorthand function for getActor X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0c6fe78a73fddf73145befa63161e58ce29263c2;p=quix0rs-gnu-social.git Shorthand function for getActor --- diff --git a/plugins/Favorite/classes/Fave.php b/plugins/Favorite/classes/Fave.php index f40efcf8ab..1e011decf8 100644 --- a/plugins/Favorite/classes/Fave.php +++ b/plugins/Favorite/classes/Fave.php @@ -423,12 +423,7 @@ class Fave extends Managed_DataObject public function getActor() { - $profile = new Profile(); - $profile->id = $this->user_id; - if (!$profile->find(true)) { - throw new NoResultException($profile); - } - return $profile; + return Profile::getByID($this->user_id); } public function getActorObject()