mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 23:35:12 +00:00
prevent cross protocol delivery loops
This commit is contained in:
parent
e93f167b3c
commit
30268166fa
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue