mirror of
https://github.com/friendica/friendica
synced 2025-05-17 06:24:10 +02:00
Add no_update flag to speed up Contact::getIdForURL instances
This commit is contained in:
parent
9f21e7f34f
commit
41678ec3cd
5 changed files with 7 additions and 7 deletions
|
@ -1077,7 +1077,7 @@ class BBCode
|
|||
// We only call this so that a previously unknown contact can be added.
|
||||
// This is important for the function "Model\Contact::getDetailsByURL()".
|
||||
// This function then can fetch an entry from the contact table.
|
||||
Contact::getIdForURL($profile, 0);
|
||||
Contact::getIdForURL($profile, 0, true);
|
||||
|
||||
$data = Contact::getDetailsByURL($profile);
|
||||
|
||||
|
|
|
@ -330,7 +330,7 @@ class Widget
|
|||
}
|
||||
|
||||
if (Feature::isEnabled($a->profile['profile_uid'], 'tagadelic')) {
|
||||
$owner_id = Contact::getIdForURL($a->profile['url']);
|
||||
$owner_id = Contact::getIdForURL($a->profile['url'], 0, true);
|
||||
|
||||
if (!$owner_id) {
|
||||
return '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue