Fix the image caching

This commit is contained in:
Thomas Sileo
2018-07-23 22:34:12 +02:00
parent 0c60612407
commit 012b85283e
2 changed files with 3 additions and 2 deletions

View File

@@ -54,7 +54,7 @@
<ul>
{% endif %}
{% for a in obj.attachment %}
{% if a.url | get_url | is_img %}
{% if a.mediaType.startswith("image/") %}
<a href="{{ a.url | get_attachment_url(None) }}"><img src="{{a.url | get_attachment_url(720) }}" class="img-attachment"></a>
{% else %}
<li><a href="{{a.url | get_attachment_url(None) }}" class="l">{% if a.filename %}{{ a.filename }}{% else %}{{ a.url }}{% endif %}</a></li>