From 16603ca85468162e117e71db53654de0d25611c8 Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 9 Oct 2024 07:39:13 +0000 Subject: =?UTF-8?q?dismiss=20add/remove=20collection=20activities=20until?= =?UTF-8?q?=20we=20support=20them=C3=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zotlabs/Lib/Libzot.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Zotlabs/Lib') diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php index bc944c97c..a3431f420 100644 --- a/Zotlabs/Lib/Libzot.php +++ b/Zotlabs/Lib/Libzot.php @@ -1148,6 +1148,18 @@ class Libzot { logger('Activity rejected: ' . print_r($data, true)); return; } + + if (in_array($AS->type, ['Add', 'Remove']) + && is_array($AS->obj) + && array_key_exists('object', $AS->obj) + && array_key_exists('actor', $AS->obj) + && !empty($AS->tgt)) { + + logger('unsupported collection operation', LOGGER_DEBUG); + return; + + } + if (is_array($AS->obj)) { $item = Activity::decode_note($AS); if (!$item) { @@ -1158,6 +1170,7 @@ class Libzot { else { $item = []; } + logger($AS->debug(), LOGGER_DATA); } -- cgit v1.2.3