mirror of
https://github.com/friendica/friendica
synced 2025-04-29 23:44:22 +02:00
Fetch avatar by id
This commit is contained in:
parent
1326239576
commit
d44641e58c
7 changed files with 45 additions and 9 deletions
|
@ -1799,7 +1799,7 @@ class Contact
|
|||
{
|
||||
// We have to fetch the "updated" variable when it wasn't provided
|
||||
// The parameter can be provided to improve performance
|
||||
if (empty($updated) || empty($guid)) {
|
||||
if (empty($updated)) {
|
||||
$account = DBA::selectFirst('account-user-view', ['updated', 'guid'], ['id' => $cid]);
|
||||
$updated = $account['updated'] ?? '';
|
||||
$guid = $account['guid'] ?? '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue