]> git.mxchange.org Git - friendica.git/commitdiff
Fix receiving of DFRN posts with public envelope
authorMichael <heluecht@pirati.ca>
Sat, 22 Jun 2019 04:17:38 +0000 (04:17 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 22 Jun 2019 04:17:38 +0000 (04:17 +0000)
mod/dfrn_notify.php

index 1a9f98fa33103f8f411a9ebd6d12dca36bee812d..e75d975a826890d9c2b9ae0958766bce8fa50f3c 100644 (file)
@@ -190,13 +190,13 @@ function dfrn_dispatch_public($postdata)
        }
 
        // Fetch the corresponding public contact
-       $contact = Contact::getDetailsByAddr($msg['author'], 0);
-       if (!$contact) {
+       $contact_id = Contact::getIdForURL($msg['author']);
+       if (empty($contact_id)) {
                Logger::log('Contact not found for address ' . $msg['author']);
                System::xmlExit(3, 'Contact ' . $msg['author'] . ' not found');
        }
 
-       $importer = DFRN::getImporter($contact['id']);
+       $importer = DFRN::getImporter($contact_id);
 
        // This should never fail
        if (empty($importer)) {