use Ostatus_profile::ensureActivityObjectProfile() in SalmonAction::ensureProfile()

This commit is contained in:
Evan Prodromou 2010-02-21 14:17:37 -05:00
parent 16a43b1154
commit ad3406a919
1 changed files with 2 additions and 1 deletions

View File

@ -155,10 +155,11 @@ class SalmonAction extends Action
$actor = $this->act->actor;
if (empty($actor->id)) {
common_log(LOG_ERR, "broken actor: " . var_export($actor, true));
common_log(LOG_ERR, "activity with no actor: " . var_export($this->act, true));
throw new Exception("Received a salmon slap from unidentified actor.");
}
return Ostatus_profile::ensureActorProfile($this->act);
return Ostatus_profile::ensureActivityObjectProfile($actor);
}
function saveNotice()