Merge pull request #13757 from annando/warning

Fix warning
This commit is contained in:
Hypolite Petovan 2023-12-22 20:30:36 -05:00 committed by GitHub
commit 82ab0c8504
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
}