mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-22 05:15:19 +00:00
don't deliver to non-deliverable hosts
This commit is contained in:
parent
1da3b960bd
commit
0b71807ffe
1 changed files with 5 additions and 0 deletions
|
@ -162,6 +162,11 @@ class ActivityPub {
|
|||
|
||||
$dest_url = $recip['hubloc_callback'];
|
||||
|
||||
if(strpos($dest_url,'http') === false) {
|
||||
logger('destination is not a url: ' . $dest_url);
|
||||
return false;
|
||||
}
|
||||
|
||||
logger('URL: ' . $dest_url, LOGGER_DEBUG);
|
||||
logger('DATA: ' . jindent($msg), LOGGER_DATA);
|
||||
|
||||
|
|
Loading…
Reference in a new issue