aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2024-01-19 11:02:13 +0100
committerMario Vavti <mario@mariovavti.com>2024-01-19 11:02:13 +0100
commit9cc85adf4734aec5bdaf7057b5885849a40c4340 (patch)
tree4243351eacc8f3725c6c274b3dd11da1d8333171 /Zotlabs
parent885068834f8b4f5b0816075e95c55b31d0723511 (diff)
downloadvolse-hubzilla-9cc85adf4734aec5bdaf7057b5885849a40c4340.tar.gz
volse-hubzilla-9cc85adf4734aec5bdaf7057b5885849a40c4340.tar.bz2
volse-hubzilla-9cc85adf4734aec5bdaf7057b5885849a40c4340.zip
Fix regression in Activity::actor_store()
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Lib/Activity.php16
1 files changed, 6 insertions, 10 deletions
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