mirror of
https://github.com/friendica/friendica
synced 2025-04-27 07:10:12 +00:00
Database performance updates
This commit is contained in:
parent
e67dbd9747
commit
9f1d1db1ee
5 changed files with 11 additions and 13 deletions
|
@ -2093,7 +2093,7 @@ class Item
|
|||
DBA::close($contacts);
|
||||
|
||||
if (!empty($owner['alias'])) {
|
||||
$condition = ['url' => $owner['alias'], 'rel' => [Contact::SHARING, Contact::FRIEND]];
|
||||
$condition = ['nurl' => Strings::normaliseLink($owner['alias']), 'rel' => [Contact::SHARING, Contact::FRIEND]];
|
||||
$contacts = DBA::select('contact', ['uid'], $condition);
|
||||
while ($contact = DBA::fetch($contacts)) {
|
||||
if ($contact['uid'] == 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue