Groups: Display group anonymous avatar link as anonymous

This commit is contained in:
Maxim Leshchenko 2021-12-27 13:08:20 +02:00
parent 0b848e35ee
commit 19796d5ca8
No known key found for this signature in database
GPG key ID: BB9C44A8733FBEEE

View file

@ -91,7 +91,9 @@
{presenter "openvk!Wall->wallEmbedded", -$club->getId()}
</div>
<div class="right_small_block">
<a href="{$club->getAvatarLink()|nocheck}">
{var avatarPhoto = $club->getAvatarPhoto()}
{var avatarLink = ($avatarPhoto->isAnonymous() ? "/photo" . ("s/" . base_convert((string) $avatarPhoto->getId(), 10, 32)) : $club->getAvatarLink())}
<a href="{$avatarLink|nocheck}">
<img src="{$club->getAvatarUrl()}" style="width: 100%; image-rendering: -webkit-optimize-contrast;" />
</a>
<div n:ifset="$thisUser" id="profile_links">