From 511d942e229e14777ca1da6741bdbc8272af98eb Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Sun, 3 Mar 2024 21:48:09 +1100 Subject: [PATCH] operator order reversed --- Code/Lib/Libzot.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Code/Lib/Libzot.php b/Code/Lib/Libzot.php index 26fea5fe6..c2e6d2c98 100644 --- a/Code/Lib/Libzot.php +++ b/Code/Lib/Libzot.php @@ -1666,7 +1666,8 @@ class Libzot $DR->set_name($channel['channel_name'] . ' <' . Channel::get_webfinger($channel) . '>'); - $conversationOperation = $isCollectionOperation && in_array($arr['target'], 'attributedTo'); + $conversationOperation = $isCollectionOperation && is_array($arr['target']) + && in_array('attributedTo', $arr['target']); if (str_contains($arr['tgt_type'], 'Collection') && !$isGoingUpstream && !$conversationOperation) { $DR->update('not a collection activity');