prevent cross protocol delivery loops

This commit is contained in:
Mike Macgirvin 2023-11-28 05:45:33 +11:00
parent e93f167b3c
commit 30268166fa

View file

@ -15,6 +15,14 @@ class ActivityPub
return;
}
// prevent cross-protocol delivery loops
$nomads = q("select hubloc_hash from hubloc where hubloc_network = 'nomad' and hubloc_id_url = '%s'",
dbesc($arr['hub']['hubloc_hash'])
);
if ($nomads) {
return;
}
logger('upstream: ' . intval($arr['upstream']));
// logger('notifier_array: ' . print_r($arr,true), LOGGER_ALL, LOG_INFO);