From 2145207ad2feedde9a1fe73807ef6365664aad79 Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 15 May 2024 07:38:07 +0000 Subject: deal with inReplyTo array --- Zotlabs/Lib/ActivityStreams.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']); -- cgit v1.2.3