Improved avatar handling (timestamps for caching)

This commit is contained in:
Michael 2021-06-29 06:15:45 +00:00
parent 97556aa69c
commit 9edc75e29d
3 changed files with 59 additions and 18 deletions

View file

@ -507,9 +507,9 @@ class Profile
$p['address'] = BBCode::convert($p['address']);
}
$p['photo'] = Contact::getAvatarUrlForId($cid);
$p['photo'] = Contact::getAvatarUrlForId($cid, ProxyUtils::SIZE_SMALL);
$p['url'] = Contact::magicLink($profile_url);
$p['url'] = Contact::magicLinkById($cid);
$tpl = Renderer::getMarkupTemplate('profile/vcard.tpl');
$o .= Renderer::replaceMacros($tpl, [