diff options
author | Mario Vavti <mario@mariovavti.com> | 2025-01-05 12:40:56 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2025-01-05 12:40:56 +0100 |
commit | 884b612ffcd7715a742b11423e542df65ed6ca04 (patch) | |
tree | 95738bae47421ed89274ab19386d5bea6d8e58d3 /Zotlabs | |
parent | ae0d138d2ae7796d76c47bca2aabb6f6334c2ca0 (diff) | |
download | volse-hubzilla-884b612ffcd7715a742b11423e542df65ed6ca04.tar.gz volse-hubzilla-884b612ffcd7715a742b11423e542df65ed6ca04.tar.bz2 volse-hubzilla-884b612ffcd7715a742b11423e542df65ed6ca04.zip |
dismiss entries where primary location data is not complete for some reason
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Lib/Libzot.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php index c9374d143..051b95ebe 100644 --- a/Zotlabs/Lib/Libzot.php +++ b/Zotlabs/Lib/Libzot.php @@ -655,6 +655,11 @@ class Libzot { return $ret; } + if (empty($arr['primary_location']['address'])) { + logger('Empty primary location address: ' . print_r($arr, true), LOGGER_DEBUG); + return $ret; + } + /** * @hooks import_xchan * Called when processing the result of zot_finger() to store the result |