forked from friendica/friendica-addons
Improved reachable check
This commit is contained in:
parent
f48b4ae535
commit
ba560c191b
|
@ -1715,8 +1715,7 @@ function pumpio_fetchallcomments(&$a, $uid, $id) {
|
|||
|
||||
function pumpio_reachable($url) {
|
||||
$data = z_fetch_url($url, false, $redirects, array('timeout'=>10));
|
||||
|
||||
return($data['success']);
|
||||
return(intval($data['return_code']) != 0);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue