]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Post/Link.php
Check the edit date before storing history
[friendica.git] / src / Model / Post / Link.php
index cc93398a4609c17fe81a65f0de9217b9412c7f43..fb7d0edb8ddb88dccad5380e7f56dbc3853a32fc 100644 (file)
@@ -101,7 +101,7 @@ class Link
        {
                $timeout = DI::config()->get('system', 'xrd_timeout');
 
-               $curlResult = DI::httpClient()->head($url, $accept, [HttpClientOptions::TIMEOUT => $timeout]);
+               $curlResult = DI::httpClient()->head($url, [HttpClientOptions::TIMEOUT => $timeout, HttpClientOptions::ACCEPT_CONTENT => $accept]);
                if ($curlResult->isSuccess()) {
                        if (empty($media['mimetype'])) {
                                return $curlResult->getHeader('Content-Type')[0] ?? '';