forked from GNUsocial/gnu-social
Shorthand function for getActor
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user