diff options
author | zotlabs <mike@macgirvin.com> | 2020-01-12 22:41:28 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2020-01-12 22:41:28 -0800 |
commit | d3cbbe029c1f19a77ac0c278f735d81b9dd3a3ec (patch) | |
tree | 327424bb0963a62a9a8bbfd2b8b588ced248080f /Zotlabs/Lib/ActivityStreams.php | |
parent | 88ebbd90d8925a74029a32f57ec581d2b3ba64ed (diff) | |
download | volse-hubzilla-d3cbbe029c1f19a77ac0c278f735d81b9dd3a3ec.tar.gz volse-hubzilla-d3cbbe029c1f19a77ac0c278f735d81b9dd3a3ec.tar.bz2 volse-hubzilla-d3cbbe029c1f19a77ac0c278f735d81b9dd3a3ec.zip |
rework activitystreams events - send invite/event activities instead of create/event. Also a first pass at creating a Zap export file from Hubzilla. Much more work is needed before this is functional.
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']) |