we don't need the 20...

This commit is contained in:
Tobias Diekershoff 2022-11-06 13:44:52 +01:00
parent 594c17546b
commit cdfd51310e

View file

@ -59,7 +59,7 @@ class CheckRelMeProfileLink
$homepageUrlVerified = false; $homepageUrlVerified = false;
$owner = User::getOwnerDataById($uid); $owner = User::getOwnerDataById($uid);
if (!empty($owner['homepage'])) { if (!empty($owner['homepage'])) {
$xrd_timeout = DI::config()->get('system', 'xrd_timeout' ?? 20); $xrd_timeout = DI::config()->get('system', 'xrd_timeout');
$curlResult = DI::httpClient()->get($owner['homepage'], $accept_content = HttpClientAccept::HTML, [HttpClientOptions::TIMEOUT => $xrd_timeout]); $curlResult = DI::httpClient()->get($owner['homepage'], $accept_content = HttpClientAccept::HTML, [HttpClientOptions::TIMEOUT => $xrd_timeout]);
if ($curlResult->isSuccess()) { if ($curlResult->isSuccess()) {
$content = $curlResult->getBody(); $content = $curlResult->getBody();