make the standards check happy
This commit is contained in:
parent
cdfd51310e
commit
379eeb49eb
1 changed files with 2 additions and 2 deletions
|
@ -57,10 +57,10 @@ class CheckRelMeProfileLink
|
||||||
Logger::notice('Verifying the homepage', ['uid' => $uid]);
|
Logger::notice('Verifying the homepage', ['uid' => $uid]);
|
||||||
Profile::update(['homepage_verified' => false], $uid);
|
Profile::update(['homepage_verified' => false], $uid);
|
||||||
$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');
|
$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();
|
||||||
if (!$content) {
|
if (!$content) {
|
||||||
|
|
Loading…
Reference in a new issue