reject zot activities with no actor array after parse

This commit is contained in:
nobody 2021-09-15 03:16:48 -07:00
parent 305fd0fa30
commit 7aabd06a4d

View file

@ -1369,6 +1369,11 @@ class Libzot {
if (in_array($env['type'],['activity','response'])) { 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'", $r = q("select hubloc_hash, hubloc_network, hubloc_url from hubloc where hubloc_id_url = '%s'",
dbesc($AS->actor['id']) dbesc($AS->actor['id'])
); );