]> git.mxchange.org Git - friendica.git/blobdiff - mod/salmon.php
More notices ...
[friendica.git] / mod / salmon.php
index 8bdfdefeee1663ba2d9c72bd3644f7848787dda0..d07b06004d130f863cae45daec499fc2c95f3b53 100644 (file)
@@ -153,11 +153,14 @@ function salmon_post(App $a, $xml = '') {
                DBA::escape(normalise_link($author_link)),
                intval($importer['uid'])
        );
-       if (! DBA::isResult($r)) {
+
+       if (!DBA::isResult($r)) {
                logger('Author ' . $author_link . ' unknown to user ' . $importer['uid'] . '.');
-               if(PConfig::get($importer['uid'],'system','ostatus_autofriend')) {
+
+               if (PConfig::get($importer['uid'], 'system', 'ostatus_autofriend')) {
                        $result = Contact::createFromProbe($importer['uid'], $author_link);
-                       if($result['success']) {
+
+                       if ($result['success']) {
                                $r = q("SELECT * FROM `contact` WHERE `network` = '%s' AND ( `url` = '%s' OR `alias` = '%s')
                                        AND `uid` = %d LIMIT 1",
                                        DBA::escape(Protocol::OSTATUS),