]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
use Ostatus_profile::ensureActivityObjectProfile() in SalmonAction::ensureProfile()
authorEvan Prodromou <evan@status.net>
Sun, 21 Feb 2010 19:17:37 +0000 (14:17 -0500)
committerEvan Prodromou <evan@status.net>
Sun, 21 Feb 2010 19:17:37 +0000 (14:17 -0500)
plugins/OStatus/lib/salmonaction.php

index abd8d4c83397c4c831814beebf1a56a3f2f4b13b..87e98ad354ec307bceb3a4b15180c10968516f04 100644 (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()