From 1187742c14584e5cd417f97ea3057577655bbf25 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 22 Mar 2020 22:46:22 -0400 Subject: [PATCH] Skip Contact::getDetailsByURL when url is empty in GContact::searchByName - Address https://github.com/friendica/friendica/issues/8000#issuecomment-602169147 --- src/Model/GContact.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/GContact.php b/src/Model/GContact.php index 09eeda4a2a..bf9aa2cf20 100644 --- a/src/Model/GContact.php +++ b/src/Model/GContact.php @@ -107,7 +107,7 @@ class GContact // Ignore results that look strange. // For historic reasons the gcontact table does contain some garbage. - if (!empty($urlparts['query']) || !empty($urlparts['fragment'])) { + if (empty($result['nurl']) || !empty($urlparts['query']) || !empty($urlparts['fragment'])) { continue; }