mirror of
https://github.com/friendica/friendica
synced 2025-04-28 21:04:22 +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
|
@ -186,7 +186,7 @@ class OStatus
|
|||
}
|
||||
|
||||
// Ensure that we are having this contact (with uid=0)
|
||||
$cid = Contact::getIdForURL($aliaslink, 0);
|
||||
$cid = Contact::getIdForURL($aliaslink, 0, true);
|
||||
|
||||
if ($cid) {
|
||||
$fields = ['url', 'nurl', 'name', 'nick', 'alias', 'about', 'location'];
|
||||
|
@ -2108,7 +2108,7 @@ class OStatus
|
|||
}
|
||||
|
||||
$check_date = DateTimeFormat::utc($last_update);
|
||||
$authorid = Contact::getIdForURL($owner["url"], 0);
|
||||
$authorid = Contact::getIdForURL($owner["url"], 0, true);
|
||||
|
||||
$sql_extra = '';
|
||||
if ($filter === 'posts') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue