Browse Source

Fixed avatar fetching for mail and feed

pull/10543/head
Michael 2 months ago
parent
commit
0fe5759d8a
  1. 2
      src/Model/Contact.php

2
src/Model/Contact.php

@ -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'] ?? '');
}

Loading…
Cancel
Save