X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fsalmon.php;h=69809f5234fe9007ac4f979039a48f6d242a0d7b;hb=f6d7ee278116c5d9d6ba77606087ecbd8a379e7d;hp=6c3aea211447f4676229f349cd9352dca1be3cfb;hpb=f42d76858655fc62dfbd05c0bcf2f6a49ea0bf30;p=friendica.git diff --git a/mod/salmon.php b/mod/salmon.php index 6c3aea2114..69809f5234 100644 --- a/mod/salmon.php +++ b/mod/salmon.php @@ -19,7 +19,7 @@ function salmon_return($val) { } -function salmon_post(App &$a) { +function salmon_post(App $a) { $xml = file_get_contents('php://input'); @@ -156,7 +156,7 @@ function salmon_post(App &$a) { if(get_pconfig($importer['uid'],'system','ostatus_autofriend')) { $result = new_contact($importer['uid'],$author_link); if($result['success']) { - $r = q("SELECT * FROM `contact` WHERE `network` = '%s' AND ( `url` = '%s' OR `alias` = '%s') + $r = q("SELECT * FROM `contact` WHERE `network` = '%s' AND ( `url` = '%s' OR `alias` = '%s') AND `uid` = %d LIMIT 1", dbesc(NETWORK_OSTATUS), dbesc($author_link),