diff options
-rw-r--r-- | CHANGELOG | 4 | ||||
-rw-r--r-- | Zotlabs/Lib/Activity.php | 16 |
2 files changed, 10 insertions, 10 deletions
@@ -1,3 +1,7 @@ +Hubzilla 8.8.7 (2024-01-19) + - Fix regression in Activity::actor_store() + + Hubzilla 8.8.6 (2024-01-11) - Provide more builtin jsonld files - Development branch compatibility in Libsync diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index ab5130ada..61c36dc04 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -1628,11 +1628,15 @@ class Activity { } */ - $url = null; - $ap_hubloc = null; + $url = $person_obj['id'] ?? ''; + + if (!$url) { + return; + } $hublocs = self::get_actor_hublocs($url); $has_zot_hubloc = false; + $ap_hubloc = null; if ($hublocs) { foreach ($hublocs as $hub) { @@ -1656,14 +1660,6 @@ class Activity { } } - if (isset($person_obj['id'])) { - $url = $person_obj['id']; - } - - if (!$url) { - return; - } - $inbox = $person_obj['inbox'] ?? null; // invalid AP identity |