From 7aabd06a4d647705b62e38f74c1cf92574e3ed61 Mon Sep 17 00:00:00 2001 From: nobody Date: Wed, 15 Sep 2021 03:16:48 -0700 Subject: [PATCH] reject zot activities with no actor array after parse --- Zotlabs/Lib/Libzot.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php index 05f92c168..dbabe88d9 100644 --- a/Zotlabs/Lib/Libzot.php +++ b/Zotlabs/Lib/Libzot.php @@ -1369,6 +1369,11 @@ class Libzot { if (in_array($env['type'],['activity','response'])) { + if (! is_array($AS->actor)) { + logger('No author!'); + return; + } + $r = q("select hubloc_hash, hubloc_network, hubloc_url from hubloc where hubloc_id_url = '%s'", dbesc($AS->actor['id']) );