Simplify the contact update in "getIdForURL"

This commit is contained in:
Michael 2019-07-12 21:07:47 +00:00
parent c34204cf50
commit 7dfadf7e7e
2 changed files with 63 additions and 95 deletions

View file

@ -348,7 +348,7 @@ class Probe
if (!self::$istimeout) {
$ap_profile = ActivityPub::probeProfile($uri);
if (!empty($ap_profile) && empty($network) && (defaults($data, 'network', '') != Protocol::DFRN)) {
if (empty($data) || (!empty($ap_profile) && empty($network) && (defaults($data, 'network', '') != Protocol::DFRN))) {
$data = $ap_profile;
} elseif (!empty($ap_profile)) {
$ap_profile['batch'] = '';