From aba80021709df04bfa6e03a80802d0cd1c368a80 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 19 Jan 2024 11:02:13 +0100 Subject: Fix regression in Activity::actor_store() (cherry picked from commit 9cc85adf4734aec5bdaf7057b5885849a40c4340) --- Zotlabs/Lib/Activity.php | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'Zotlabs/Lib') diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index 835909849..4fbc051bf 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -1626,11 +1626,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) { @@ -1654,14 +1658,6 @@ class Activity { } } - if (isset($person_obj['id'])) { - $url = $person_obj['id']; - } - - if (!$url) { - return; - } - $inbox = $person_obj['inbox'] ?? null; // invalid AP identity -- cgit v1.2.3