mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-08 12:34:27 +02:00
Replace Logger with DI::logger() in Core classes
This commit is contained in:
parent
8c89c37775
commit
e3cf6b9c54
6 changed files with 43 additions and 43 deletions
|
@ -8,6 +8,7 @@
|
|||
namespace Friendica\Core;
|
||||
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\User;
|
||||
use Friendica\Network\HTTPException;
|
||||
use Friendica\Protocol\ActivityPub;
|
||||
|
@ -123,7 +124,7 @@ class Protocol
|
|||
|
||||
if ($protocol == self::DIASPORA) {
|
||||
$contact = Diaspora::sendShare($owner, $contact);
|
||||
Logger::notice('share returns: ' . $contact);
|
||||
DI::logger()->notice('share returns: ' . $contact);
|
||||
} elseif (in_array($protocol, [self::ACTIVITYPUB, self::DFRN])) {
|
||||
$activity_id = ActivityPub\Transmitter::activityIDFromContact($contact['id']);
|
||||
if (empty($activity_id)) {
|
||||
|
@ -132,7 +133,7 @@ class Protocol
|
|||
}
|
||||
|
||||
$success = ActivityPub\Transmitter::sendActivity('Follow', $contact['url'], $owner['uid'], $activity_id);
|
||||
Logger::notice('Follow returns: ' . $success);
|
||||
DI::logger()->notice('Follow returns: ' . $success);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -150,7 +151,7 @@ class Protocol
|
|||
public static function unfollow(array $contact, array $owner): ?bool
|
||||
{
|
||||
if (empty($contact['network'])) {
|
||||
Logger::notice('Contact has got no network, we quit here', ['id' => $contact['id']]);
|
||||
DI::logger()->notice('Contact has got no network, we quit here', ['id' => $contact['id']]);
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue