Convert all links to hyperlinks #69

This commit is contained in:
KnugiHK
2023-10-24 00:16:49 +08:00
parent fc50415afd
commit 3082c83bc4

View File

@@ -139,7 +139,7 @@
</div> </div>
{% else %} {% else %}
{% if msg.media == false %} {% if msg.media == false %}
{{ msg.data | sanitize_except() }} {{ msg.data | sanitize_except() | urlize(none, true, '_blank') }}
{% else %} {% else %}
{% if "image/" in msg.mime %} {% if "image/" in msg.mime %}
<a href="{{ msg.data }}"> <a href="{{ msg.data }}">
@@ -162,7 +162,7 @@
{% endif %} {% endif %}
{% if msg.caption is not none %} {% if msg.caption is not none %}
<br> <br>
{{ msg.caption }} {{ msg.caption | urlize(none, true, '_blank') }}
{% endif %} {% endif %}
{% endif %} {% endif %}
{% endif %} {% endif %}
@@ -223,7 +223,7 @@
</div> </div>
{% else %} {% else %}
{% if msg.media == false %} {% if msg.media == false %}
{{ msg.data | sanitize_except() }} {{ msg.data | sanitize_except() | urlize(none, true, '_blank') }}
{% else %} {% else %}
{% if "image/" in msg.mime %} {% if "image/" in msg.mime %}
<a href="{{ msg.data }}"> <a href="{{ msg.data }}">
@@ -246,7 +246,7 @@
{% endif %} {% endif %}
{% if msg.caption is not none %} {% if msg.caption is not none %}
<br> <br>
{{ msg.caption }} {{ msg.caption | urlize(none, true, '_blank') }}
{% endif %} {% endif %}
{% endif %} {% endif %}
{% endif %} {% endif %}