diff options
author | Mario <mario@mariovavti.com> | 2020-01-15 10:30:02 +0100 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-01-15 10:30:02 +0100 |
commit | 65bc3636854f0e3112ffc412dec3ddc16516dec9 (patch) | |
tree | a8b0af66015815d56342daf8301ab5ae095eda0a /Zotlabs/Lib/ActivityStreams.php | |
parent | d96f4340e80207a29a5c1c49cae8c25e3934d5ae (diff) | |
parent | 2a287e6def5ab54037222c963ab0875faf62fc1a (diff) | |
download | volse-hubzilla-65bc3636854f0e3112ffc412dec3ddc16516dec9.tar.gz volse-hubzilla-65bc3636854f0e3112ffc412dec3ddc16516dec9.tar.bz2 volse-hubzilla-65bc3636854f0e3112ffc412dec3ddc16516dec9.zip |
Merge branch 'dev' into 'dev'
event compatibility work
See merge request hubzilla/core!1817
Diffstat (limited to 'Zotlabs/Lib/ActivityStreams.php')
-rw-r--r-- | Zotlabs/Lib/ActivityStreams.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Zotlabs/Lib/ActivityStreams.php b/Zotlabs/Lib/ActivityStreams.php index 006744aff..d8bd72943 100644 --- a/Zotlabs/Lib/ActivityStreams.php +++ b/Zotlabs/Lib/ActivityStreams.php @@ -101,7 +101,13 @@ class ActivityStreams { $this->actor = $this->get_actor('attributedTo',$this->obj); } } + + // 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']); + } + if($this->obj && is_array($this->obj) && $this->obj['actor']) $this->obj['actor'] = $this->get_actor('actor',$this->obj); if($this->tgt && is_array($this->tgt) && $this->tgt['actor']) |