summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-02-21 14:17:37 -0500
committerEvan Prodromou <evan@status.net>2010-02-21 14:17:37 -0500
commitad3406a919d950315ed1381ffb4dd8d47baf2c24 (patch)
treef7581c86e23adca894b4471b1de2233649278883
parent16a43b1154baf967183279c5e291a080cb2d5868 (diff)
use Ostatus_profile::ensureActivityObjectProfile() in SalmonAction::ensureProfile()
-rw-r--r--plugins/OStatus/lib/salmonaction.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/OStatus/lib/salmonaction.php b/plugins/OStatus/lib/salmonaction.php
index abd8d4c83..87e98ad35 100644
--- a/plugins/OStatus/lib/salmonaction.php
+++ b/plugins/OStatus/lib/salmonaction.php
@@ -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()