Shorthand function for getActor
This commit is contained in:
parent
b8f52965a9
commit
0c6fe78a73
@ -423,12 +423,7 @@ class Fave extends Managed_DataObject
|
|||||||
|
|
||||||
public function getActor()
|
public function getActor()
|
||||||
{
|
{
|
||||||
$profile = new Profile();
|
return Profile::getByID($this->user_id);
|
||||||
$profile->id = $this->user_id;
|
|
||||||
if (!$profile->find(true)) {
|
|
||||||
throw new NoResultException($profile);
|
|
||||||
}
|
|
||||||
return $profile;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getActorObject()
|
public function getActorObject()
|
||||||
|
Loading…
Reference in New Issue
Block a user