]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
ensureActivityObjectProfile is more thorough than createAct...
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 12 Jan 2015 10:47:21 +0000 (11:47 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 12 Jan 2015 10:47:21 +0000 (11:47 +0100)
plugins/OStatus/lib/salmonaction.php

index eb3a62da322e936a4ac4b995618a6d4802f3b8da..70cc5d016b4210b145b88c80bdb3ec3a6883d810 100644 (file)
@@ -255,7 +255,7 @@ class SalmonAction extends Action
         if (!$profile instanceof Profile) {
             common_debug("We do not have a local profile to connect to this activity's author. Let's create one.");
             // ensureActivityObjectProfile throws exception on failure
-            $oprofile = Ostatus_profile::createActivityObjectProfile($actor);
+            $oprofile = Ostatus_profile::ensureActivityObjectProfile($actor);
             $profile = $oprofile->localProfile();
         }
         assert($profile instanceof Profile);