diff options
author | Mario <mario@mariovavti.com> | 2024-10-09 07:39:13 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-10-09 07:39:13 +0000 |
commit | 16603ca85468162e117e71db53654de0d25611c8 (patch) | |
tree | 8f077e14e53d00d99a86fc36c57c236c272b2388 /Zotlabs | |
parent | 2693e9e99097c4bbcf8c9103a5876bc0585ff84c (diff) | |
download | volse-hubzilla-16603ca85468162e117e71db53654de0d25611c8.tar.gz volse-hubzilla-16603ca85468162e117e71db53654de0d25611c8.tar.bz2 volse-hubzilla-16603ca85468162e117e71db53654de0d25611c8.zip |
dismiss add/remove collection activities until we support themÃ
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Lib/Libzot.php | 13 |
1 files changed, 13 insertions, 0 deletions
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); } |