1
0
Fork 0

Fixed avatar fetching for mail and feed

This commit is contained in:
Michael 2021-07-24 10:32:55 +00:00
parent 2502a9192d
commit 0fe5759d8a

View file

@ -1736,7 +1736,7 @@ class Contact
{
$condition = ["`nurl` = ? AND ((`uid` = ? AND `network` IN (?, ?)) OR `uid` = ?)",
Strings::normaliseLink($url), $uid, Protocol::FEED, Protocol::MAIL, 0];
$contact = self::selectFirst(['id', 'updated'], $condition);
$contact = self::selectFirst(['id', 'updated'], $condition, ['order' => ['uid' => true]]);
return self::getAvatarUrlForId($contact['id'] ?? 0, $size, $contact['updated'] ?? '');
}