Merge pull request #9214 from MrPetovan/bug/9210-dfrn-contact-id
authorMichael Vogel <icarus@dabo.de>
Thu, 17 Sep 2020 04:41:17 +0000 (06:41 +0200)
committerGitHub <noreply@github.com>
Thu, 17 Sep 2020 04:41:17 +0000 (06:41 +0200)
Fix wrong expected DB field name in DFRN::fetchauthor

src/Protocol/DFRN.php

index 6dcd940..78843a3 100644 (file)
@@ -1513,7 +1513,7 @@ class DFRN
                        }
 
                        $author["contact-unknown"] = true;
-                       $contact = Contact::getByURL($author["link"], null, ["contact-id", "network"]);
+                       $contact = Contact::getByURL($author["link"], null, ["id", "network"]);
                        $author["contact-id"] = $contact["id"] ?? $importer["id"];
                        $author["network"] = $contact["network"] ?? $importer["network"];
                        $onlyfetch = true;