From: Michael Vogel Date: Fri, 11 Dec 2020 14:16:29 +0000 (+0100) Subject: Issue 9633: Avoid contact lookup in conversation to avoid long loading times X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cd428a2d282d176b4718dd051764865879eb8368;p=friendica.git Issue 9633: Avoid contact lookup in conversation to avoid long loading times --- diff --git a/include/conversation.php b/include/conversation.php index 837c6a047c..f0d121a3ca 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -324,8 +324,7 @@ function conv_get_blocklist() $blocklist = []; foreach (explode(',', $str_blocked) as $entry) { - // The 4th parameter guarantees that there always will be a public contact entry - $cid = Contact::getIdForURL(trim($entry), 0, false, ['url' => trim($entry)]); + $cid = Contact::getIdForURL(trim($entry), 0, false); if (!empty($cid)) { $blocklist[] = $cid; }