aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-02-23 14:54:04 +0000
committerMario <mario@mariovavti.com>2023-02-23 14:54:04 +0000
commit828087ee8cd3a57050fa08a36c19cc904889681f (patch)
treea1849b63514fb2e91575ba9d5c83fcded8f75021 /Zotlabs/Lib
parentefcda1d37d609677b4fdc6a12c63feea250a3f5e (diff)
downloadvolse-hubzilla-828087ee8cd3a57050fa08a36c19cc904889681f.tar.gz
volse-hubzilla-828087ee8cd3a57050fa08a36c19cc904889681f.tar.bz2
volse-hubzilla-828087ee8cd3a57050fa08a36c19cc904889681f.zip
fix syntax for get_compund_property()
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r--Zotlabs/Lib/ActivityStreams.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Lib/ActivityStreams.php b/Zotlabs/Lib/ActivityStreams.php
index 9049ffb5d..1a6fe9c1b 100644
--- a/Zotlabs/Lib/ActivityStreams.php
+++ b/Zotlabs/Lib/ActivityStreams.php
@@ -113,7 +113,7 @@ class ActivityStreams {
// fetch recursive or embedded activities
if ($this->obj && is_array($this->obj) && array_key_exists('object', $this->obj)) {
- $this->obj['object'] = $this->get_compound_property($this->obj['object']);
+ $this->obj['object'] = $this->get_compound_property('object', $this->obj);
}
if ($this->obj && is_array($this->obj) && isset($this->obj['actor']))
@@ -364,6 +364,7 @@ class ActivityStreams {
*/
function get_compound_property($property, $base = '', $namespace = '', $first = false) {
$x = $this->get_property_obj($property, $base, $namespace);
+
if ($this->is_url($x)) {
$y = $this->fetch_property($x);
if (is_array($y)) {