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;
}
if ($network === Protocol::DFRN) {
$new_relation = Contact::FOLLOWER;
+
if (($relation == Contact::SHARING) || ($duplex)) {
$new_relation = Contact::FRIEND;
}
logger('dfrn_confirm: request - photos imported');
$new_relation = Contact::SHARING;
+
if (($relation == Contact::FOLLOWER) || ($duplex)) {
$new_relation = Contact::FRIEND;
}