]> git.mxchange.org Git - friendica.git/blobdiff - mod/dfrn_confirm.php
Merge pull request #5758 from MrPetovan/bug/fix-empty-notifications
[friendica.git] / mod / dfrn_confirm.php
index e2fbf1cdbec79dbf1d06423d8266012fc42c3b29..41b5e0ef54f16587dae6e2935ad40916b801e519 100644 (file)
@@ -247,6 +247,7 @@ function dfrn_confirm_post(App $a, $handsfree = null)
 
                        if (stristr($res, "<status") === false) {
                                // wrong xml! stop here!
+                               logger('Unexpected response posting to ' . $dfrn_confirm);
                                notice(L10n::t('Unexpected response from remote site: ') . EOL . htmlspecialchars($res) . EOL);
                                return;
                        }
@@ -307,6 +308,7 @@ function dfrn_confirm_post(App $a, $handsfree = null)
 
                if ($network === Protocol::DFRN) {
                        $new_relation = Contact::FOLLOWER;
+
                        if (($relation == Contact::SHARING) || ($duplex)) {
                                $new_relation = Contact::FRIEND;
                        }
@@ -549,6 +551,7 @@ function dfrn_confirm_post(App $a, $handsfree = null)
                logger('dfrn_confirm: request - photos imported');
 
                $new_relation = Contact::SHARING;
+
                if (($relation == Contact::FOLLOWER) || ($duplex)) {
                        $new_relation = Contact::FRIEND;
                }