We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 0c6fe78a authored by mattl's avatar mattl

Shorthand function for getActor

parent b8f52965
......@@ -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()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment