Use minimized images in posts

This commit is contained in:
Celestora 2022-04-08 11:40:20 +03:00
parent 24f0f3a3f4
commit ccab9b39d5

View file

@ -2,7 +2,7 @@
{if !$attachment->isDeleted()}
{var link = "/photo" . ($attachment->isAnonymous() ? ("s/" . base_convert((string) $attachment->getId(), 10, 32)) : $attachment->getPrettyId())}
<a href="{$link}">
<img class="media" src="{$attachment->getURL()}" alt="{$attachment->getDescription()}" />
<img class="media" src="{$attachment->getURLBySizeId('normal')}" alt="{$attachment->getDescription()}" />
</a>
{else}
<a href="javascript:alert('{_attach_no_longer_available}');">