mirror of
https://github.com/friendica/friendica
synced 2024-11-10 05:02:58 +00:00
Merge pull request #9648 from annando/issue-9633
Issue 9633: Avoid contact lookup in conversation to avoid long loading times
This commit is contained in:
commit
8aa2942ac9
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue