mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-08 16:14:26 +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
|
@ -1723,7 +1723,7 @@ class Item extends BaseObject
|
|||
$item_contact_id = $owner_self_contact['id'];
|
||||
$item_contact = $owner_self_contact;
|
||||
} else {
|
||||
$item_contact_id = Contact::getIdForURL($author_contact['url'], $uid);
|
||||
$item_contact_id = Contact::getIdForURL($author_contact['url'], $uid, true);
|
||||
$item_contact = dba::selectFirst('contact', [], ['id' => $item_contact_id]);
|
||||
if (!DBM::is_result($item_contact)) {
|
||||
logger('like: unknown item contact ' . $item_contact_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue