mirror of
https://github.com/friendica/friendica
synced 2025-04-30 21:44:22 +02:00
Simplify the contact update in "getIdForURL"
This commit is contained in:
parent
c34204cf50
commit
7dfadf7e7e
2 changed files with 63 additions and 95 deletions
|
@ -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'] = '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue