mirror of
https://github.com/friendica/friendica
synced 2025-04-25 22:30:10 +00:00
When a server isn't reachable there were timeout problems with fetching image data
This commit is contained in:
parent
135052a5a0
commit
5ec2c7e965
3 changed files with 18 additions and 10 deletions
|
@ -1246,6 +1246,9 @@ function original_url($url, $depth=1, $fetchbody = false) {
|
|||
|
||||
$a->save_timestamp($stamp1, "network");
|
||||
|
||||
if ($http_code == 0)
|
||||
return($url);
|
||||
|
||||
if ((($curl_info['http_code'] == "301") OR ($curl_info['http_code'] == "302"))
|
||||
AND (($curl_info['redirect_url'] != "") OR ($curl_info['location'] != ""))) {
|
||||
if ($curl_info['redirect_url'] != "")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue