mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
Make "HTTPRequest::post" dynamic
This commit is contained in:
parent
688c556739
commit
20056dc795
6 changed files with 6 additions and 12 deletions
|
@ -12,7 +12,6 @@ use Friendica\Core\Hook;
|
|||
use Friendica\Core\Logger;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
use Friendica\Network\HTTPRequest;
|
||||
|
||||
function libertree_install()
|
||||
{
|
||||
|
@ -243,7 +242,7 @@ function libertree_send(&$a,&$b) {
|
|||
// 'token' => $ltree_api_token
|
||||
];
|
||||
|
||||
$result = HTTPRequest::post($ltree_blog, $params)->getBody();
|
||||
$result = DI::httpRequest()->post($ltree_blog, $params)->getBody();
|
||||
Logger::log('libertree: ' . $result);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue