From: Mikael Nordfeldth Date: Mon, 12 Jan 2015 10:47:21 +0000 (+0100) Subject: ensureActivityObjectProfile is more thorough than createAct... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=66044b7782d622ab6befc5590915032731883ba9;p=quix0rs-gnu-social.git ensureActivityObjectProfile is more thorough than createAct... --- diff --git a/plugins/OStatus/lib/salmonaction.php b/plugins/OStatus/lib/salmonaction.php index eb3a62da32..70cc5d016b 100644 --- a/plugins/OStatus/lib/salmonaction.php +++ b/plugins/OStatus/lib/salmonaction.php @@ -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);