]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Owa.php
Use the follower collection
[friendica.git] / src / Module / Owa.php
index ae3828fe31d8365276421329d6d4d2b684fd83d4..68f31c59de23aab272d19b7a17b1254c259affeb 100644 (file)
@@ -7,7 +7,6 @@ namespace Friendica\Module;
 use Friendica\BaseModule;
 use Friendica\Core\System;
 use Friendica\Database\DBA;
-use Friendica\Database\DBM;
 use Friendica\Model\Contact;
 use Friendica\Model\OpenWebAuthToken;
 use Friendica\Util\HTTPSignature;
@@ -52,10 +51,10 @@ class Owa extends BaseModule
 
                                                $contact = DBA::selectFirst('contact', $fields, $condition);
 
-                                               if (DBM::is_result($contact)) {
+                                               if (DBA::isResult($contact)) {
                                                        // Try to verify the signed header with the public key of the contact record
                                                        // we have found.
-                                                       $verified = HTTPSignature::verify('', $contact['pubkey']);
+                                                       $verified = HTTPSignature:verifyMagic($contact['pubkey']);
 
                                                        if ($verified && $verified['header_signed'] && $verified['header_valid']) {
                                                                logger('OWA header: ' . print_r($verified, true), LOGGER_DATA);