From: Michael Date: Wed, 20 Jul 2022 05:38:53 +0000 (+0000) Subject: Fix processing of incoming Diaspora messages X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=138a15404f6e30fb80450473364362900ee31a96;p=friendica.git Fix processing of incoming Diaspora messages --- diff --git a/src/Protocol/Diaspora.php b/src/Protocol/Diaspora.php index 6d3c23dad6..1f21ea4981 100644 --- a/src/Protocol/Diaspora.php +++ b/src/Protocol/Diaspora.php @@ -705,7 +705,7 @@ class Diaspora // This is something that shouldn't happen at all. if (in_array($type, ['status_message', 'reshare', 'profile'])) { if ($msg['author'] != $fields->author) { - Logger::notice("Message handle is not the same as envelope sender. Quitting this message."); + Logger::notice('Message handle is not the same as envelope sender. Quitting this message.', ['author1' => $msg['author'], 'author2' => $fields->author]); return false; } } @@ -760,7 +760,7 @@ class Diaspora { $handle = strval($handle); - Logger::notice("Fetching diaspora key for: " . $handle); + Logger::notice('Fetching diaspora key', ['handle' => $handle, 'callstack' => System::callstack(20)]); $fcontact = FContact::getByURL($handle); if (!empty($fcontact['pubkey'])) {