]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/HTTPSignature.php
Contact follow and unfollow workd partially
[friendica.git] / src / Util / HTTPSignature.php
index 94358077042df345de42b3cf63d664e01adeb6b7..911de4308e5f7eb0b371f6c277f48d88386232e8 100644 (file)
@@ -7,7 +7,6 @@ namespace Friendica\Util;
 
 use Friendica\Core\Config;
 use Friendica\Database\DBA;
-use Friendica\Database\DBM;
 
 /**
  * @brief Implements HTTP Signatures per draft-cavage-http-signatures-07.
@@ -126,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'];
@@ -184,7 +185,7 @@ class HTTPSignature
                        $contact = DBA::selectFirst('contact', ['pubkey'], ['id' => $id, 'network' => 'activitypub']);
                }
 
-               if (DBM::is_result($contact)) {
+               if (DBA::isResult($contact)) {
                        return $contact['pubkey'];
                }