Fix fatal error because of unknown function "fetchUrl"

This commit is contained in:
Michael 2020-07-27 11:50:36 +00:00
parent 639e2b3892
commit fd1da74980
2 changed files with 3 additions and 2 deletions

View file

@ -22,6 +22,7 @@
namespace Friendica\Protocol;
use Friendica\Core\Logger;
use Friendica\DI;
use Friendica\Network\Probe;
use Friendica\Util\Crypto;
use Friendica\Util\Strings;
@ -71,7 +72,7 @@ class Salmon
$ret[$x] = substr($ret[$x], 5);
}
} elseif (Strings::normaliseLink($ret[$x]) == 'http://') {
$ret[$x] = DI::httpRequest()->fetchUrl($ret[$x]);
$ret[$x] = DI::httpRequest()->fetch($ret[$x]);
}
}
}