Rename create

rename create function to createFromProbe and update calls.
This commit is contained in:
Adam Magness 2018-01-09 11:40:25 -05:00
parent c81e83c500
commit 5358f5742e
6 changed files with 7 additions and 7 deletions

View file

@ -164,7 +164,7 @@ function salmon_post(App $a) {
if (! DBM::is_result($r)) {
logger('mod-salmon: Author unknown to us.');
if(PConfig::get($importer['uid'],'system','ostatus_autofriend')) {
$result = Contact::create($importer['uid'], $author_link);
$result = Contact::createFromProbe($importer['uid'], $author_link);
if($result['success']) {
$r = q("SELECT * FROM `contact` WHERE `network` = '%s' AND ( `url` = '%s' OR `alias` = '%s')
AND `uid` = %d LIMIT 1",