mirror of
https://github.com/friendica/friendica
synced 2025-04-22 19:10:12 +00:00
Catch all errors thrown by "fetchRaw"
This commit is contained in:
parent
6870ccc00e
commit
2b513a48c7
8 changed files with 64 additions and 28 deletions
|
@ -570,7 +570,12 @@ class Processor
|
|||
*/
|
||||
public static function isActivityGone(string $url): bool
|
||||
{
|
||||
$curlResult = HTTPSignature::fetchRaw($url, 0);
|
||||
try {
|
||||
$curlResult = HTTPSignature::fetchRaw($url, 0);
|
||||
} catch (\Throwable $th) {
|
||||
Logger::notice('Error fetching url', ['url' => $url, 'error' => $th]);
|
||||
return true;
|
||||
}
|
||||
|
||||
if (Network::isUrlBlocked($url)) {
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue