mirror of
https://github.com/friendica/friendica
synced 2025-04-29 13:44:23 +02:00
Removed query for "updated" in gcontact
This commit is contained in:
parent
6011598bc2
commit
cf0d36737f
3 changed files with 20 additions and 26 deletions
|
@ -398,18 +398,15 @@ class Profile
|
|||
$contact_block = '';
|
||||
$updated = '';
|
||||
$contact_count = 0;
|
||||
|
||||
if (!empty($profile['last-item'])) {
|
||||
$updated = date('c', strtotime($profile['last-item']));
|
||||
}
|
||||
|
||||
if (!$block) {
|
||||
$contact_block = ContactBlock::getHTML($a->profile);
|
||||
|
||||
if (is_array($a->profile) && !$a->profile['hide-friends']) {
|
||||
$r = q(
|
||||
"SELECT `gcontact`.`updated` FROM `contact` INNER JOIN `gcontact` WHERE `gcontact`.`nurl` = `contact`.`nurl` AND `self` AND `uid` = %d LIMIT 1",
|
||||
intval($a->profile['uid'])
|
||||
);
|
||||
if (DBA::isResult($r)) {
|
||||
$updated = date('c', strtotime($r[0]['updated']));
|
||||
}
|
||||
|
||||
$contact_count = DBA::count('contact', [
|
||||
'uid' => $profile['uid'],
|
||||
'self' => false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue