aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-05-15 07:38:07 +0000
committerMario <mario@mariovavti.com>2024-05-15 07:38:07 +0000
commit2145207ad2feedde9a1fe73807ef6365664aad79 (patch)
tree17d97f9304f63d1642be4af2a9d66b2363f3c0ea
parentf086dfd8ca2508816c688aaaf5e9b0633605b9d9 (diff)
downloadvolse-hubzilla-2145207ad2feedde9a1fe73807ef6365664aad79.tar.gz
volse-hubzilla-2145207ad2feedde9a1fe73807ef6365664aad79.tar.bz2
volse-hubzilla-2145207ad2feedde9a1fe73807ef6365664aad79.zip
deal with inReplyTo array
-rw-r--r--Zotlabs/Lib/ActivityStreams.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Lib/ActivityStreams.php b/Zotlabs/Lib/ActivityStreams.php
index 9f028bb46..55a1de5dd 100644
--- a/Zotlabs/Lib/ActivityStreams.php
+++ b/Zotlabs/Lib/ActivityStreams.php
@@ -148,7 +148,7 @@ class ActivityStreams {
// Determine if this is a followup or response activity
- $this->parent_id = $this->get_property_obj('inReplyTo');
+ $this->parent_id = ((is_array($this->get_property_obj('inReplyTo'))) ? $this->get_property_obj('inReplyTo')['id'] : $this->get_property_obj('inReplyTo'));
if (!$this->parent_id && isset($this->obj['inReplyTo'])) {
$this->parent_id = ((is_array($this->obj['inReplyTo'])) ? $this->obj['inReplyTo']['id'] : $this->obj['inReplyTo']);