ensureActivityObjectProfile is more thorough than createAct...
This commit is contained in:
parent
c7df5594d0
commit
66044b7782
|
@ -255,7 +255,7 @@ class SalmonAction extends Action
|
||||||
if (!$profile instanceof Profile) {
|
if (!$profile instanceof Profile) {
|
||||||
common_debug("We do not have a local profile to connect to this activity's author. Let's create one.");
|
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
|
// ensureActivityObjectProfile throws exception on failure
|
||||||
$oprofile = Ostatus_profile::createActivityObjectProfile($actor);
|
$oprofile = Ostatus_profile::ensureActivityObjectProfile($actor);
|
||||||
$profile = $oprofile->localProfile();
|
$profile = $oprofile->localProfile();
|
||||||
}
|
}
|
||||||
assert($profile instanceof Profile);
|
assert($profile instanceof Profile);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user