]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/HTTPSignature.php
Contact follow and unfollow workd partially
[friendica.git] / src / Util / HTTPSignature.php
index 878eb4b6553128dee3a3d0468d8278d46c5782f6..911de4308e5f7eb0b371f6c277f48d88386232e8 100644 (file)
@@ -125,6 +125,8 @@ class HTTPSignature
                        $key = $key($sig_block['keyId']);
                }
 
+               logger('Got keyID ' . $sig_block['keyId']);
+
                // We don't use Activity Pub at the moment.
 //             if (!$key) {
 //                     $result['signer'] = $sig_block['keyId'];
@@ -183,7 +185,7 @@ class HTTPSignature
                        $contact = DBA::selectFirst('contact', ['pubkey'], ['id' => $id, 'network' => 'activitypub']);
                }
 
-               if (DBA::is_result($contact)) {
+               if (DBA::isResult($contact)) {
                        return $contact['pubkey'];
                }