forked from friendica/friendica-addons
Replace call for Logger with DI::logger() in libertree addon
This commit is contained in:
parent
a488f25131
commit
f08750199d
1 changed files with 2 additions and 3 deletions
|
@ -8,7 +8,6 @@
|
|||
|
||||
use Friendica\Content\Text\BBCode;
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
|
@ -130,7 +129,7 @@ function libertree_post_local(array &$b)
|
|||
|
||||
function libertree_send(array &$b)
|
||||
{
|
||||
Logger::notice('libertree_send: invoked');
|
||||
DI::logger()->notice('libertree_send: invoked');
|
||||
|
||||
if ($b['deleted'] || ($b['private'] == Item::PRIVATE) || ($b['created'] !== $b['edited'])) {
|
||||
return;
|
||||
|
@ -196,6 +195,6 @@ function libertree_send(array &$b)
|
|||
];
|
||||
|
||||
$result = DI::httpClient()->post($ltree_blog, $params)->getBodyString();
|
||||
Logger::notice('libertree: ' . $result);
|
||||
DI::logger()->notice('libertree: ' . $result);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue