Fix warning

This commit is contained in:
Michael 2023-12-22 23:51:30 +00:00
parent 2d73a4bc58
commit 5b169c908b

View File

@ -309,7 +309,7 @@ class ActivityPub
$limited = DI::config()->get('system', 'limited_servers');
if (!empty($limited)) {
$servers = explode(',', str_replace(' ', '', $limited));
$host = parse_url($contact['baseurl'], PHP_URL_HOST);
$host = parse_url($apcontact['baseurl'], PHP_URL_HOST);
if (!empty($host) && in_array($host, $servers)) {
return false;
}