Make "HTTPRequest::post" dynamic

This commit is contained in:
nupplaPhil 2020-03-04 22:18:27 +01:00 committed by Hypolite Petovan
parent 688c556739
commit 20056dc795
6 changed files with 6 additions and 12 deletions

View file

@ -11,7 +11,6 @@ use Friendica\Content\Text\BBCode;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\DI;
use Friendica\Network\HTTPRequest;
use Friendica\Util\XML;
function blogger_install()
@ -225,7 +224,7 @@ EOT;
Logger::log('blogger: data: ' . $xml, Logger::DATA);
if ($bl_blog !== 'test') {
$x = HTTPRequest::post($bl_blog, $xml)->getBody();
$x = DI::httpRequest()->post($bl_blog, $xml)->getBody();
}
Logger::log('posted to blogger: ' . (($x) ? $x : ''), Logger::DEBUG);