Fix showing preview images in the .html file when using local storage

Local storage media urls are prefixed with '/', previously only http(s) media preview src were displayed
This commit is contained in:
Patrick Robertson
2024-12-31 09:29:31 +01:00
parent a46f9997ea
commit 0c803f15a5

View File

@@ -3,7 +3,7 @@
{% for url in m.urls %}
{% if url | length == 0 %}
No URL available for {{ m.key }}.
{% elif 'http' in url %}
{% elif 'http://' in url or 'https://' in url or url.startswith('/') %}
{% if 'image' in m.mimetype %}
<div>
<a href="{{ url }}">