master
Aevann1 2021-09-02 00:36:22 +02:00
parent 36135564a0
commit 871b38fc26
10 changed files with 11 additions and 11 deletions

View File

@ -241,7 +241,7 @@ def sanitize(sanitized, noimages=False):
for rd in ["https://reddit.com/", "https://new.reddit.com/", "https://www.reddit.com/", "https://redd.it/"]:
sanitized = sanitized.replace(rd, "https://old.reddit.com/")
# sanitized = re.sub('([^">])(https:\/\/[^ <>]*)', r'\1<a target="_blank" href="\2">\2</a>', sanitized)
# sanitized = re.sub('<p>(https:\/\/[^ <>]*)', r'<p><a target="_blank" href="\1">\1</a>', sanitized)
sanitized = re.sub('([^">=])(https:\/\/[^ <>]*)', r'\1<a target="_blank" href="\2">\2</a>', sanitized)
sanitized = re.sub('<p>(https:\/\/[^ <>]*)', r'<p><a target="_blank" href="\1">\1</a>', sanitized)
return sanitized

View File

@ -105,7 +105,7 @@
</div>
{% endif %}
<div id="comment-{{c.id}}" class="{% if c.unread %}context{% endif %} comment {% if standalone and level==1 %} mt-0{% endif %}{% if c.collapse_for_user(v) or (standalone and c.over_18 and not (v and v.over_18)) %} collapsed{% endif %}" style="border-left: 2px solid #{{c.author.namecolor}}; {% if c.unread %}padding: 10px 10px 10px 0 !important;{% endif %}">
<div id="comment-{{c.id}}" class="{% if c.unread %}context{% endif %} comment {% if standalone and level==1 %} mt-0{% endif %}{% if c.collapse_for_user(v) or (standalone and c.over_18 and not (v and v.over_18)) %} collapsed{% endif %}" style="border-left: 2px solid #{{c.author.namecolor}}; {% if c.unread %}padding: 10px 10px 10px !important;{% endif %}">
<span class="comment-collapse-desktop d-none d-md-block" {% if not c.unread %}style="border-left: 2px solid #{{c.author.namecolor}};"{% endif %} onclick="collapse_comment('{{c.id}}')"></span>

View File

@ -1161,7 +1161,7 @@
{% include "expanded_image_modal.html" %}
<script src="/assets/js/general5.js"></script>
<script src="/assets/js/general6.js"></script>
<!-- ClipboardJS -->

View File

@ -145,6 +145,6 @@ We also have some custom hooks for mentioning users and subreddits. Note that th
{% include "expanded_image_modal.html" %}
{% include "expanded_video_modal.html" %}
<script src="/assets/js/general5.js"></script>
<script src="/assets/js/general6.js"></script>
{% endblock %}

View File

@ -130,7 +130,7 @@
{% include "bootstrap.html" %}
<script src="/assets/js/general5.js"></script>
<script src="/assets/js/general6.js"></script>
</body>

View File

@ -254,7 +254,7 @@
</div>
</div>
<script src="/assets/js/general5.js"></script>
<script src="/assets/js/general6.js"></script>
{% block onload %}{% endblock %}

View File

@ -226,7 +226,7 @@
});
</script>
<script src="/assets/js/general5.js"></script>
<script src="/assets/js/general6.js"></script>
{% block scripts %}
{% endblock %}

View File

@ -225,7 +225,7 @@
<!-- {{'SITE_NAME' | app_config}} JS -->
<script src="/assets/js/general5.js"></script>
<script src="/assets/js/general6.js"></script>
</body>

View File

@ -144,7 +144,7 @@
<!-- {{'SITE_NAME' | app_config}} JS -->
<script src="/assets/js/general5.js"></script>
<script src="/assets/js/general6.js"></script>
</body>

View File

@ -409,7 +409,7 @@
<!-- {{'SITE_NAME' | app_config}} JS -->
<script src="/assets/js/general5.js"></script>
<script src="/assets/js/general6.js"></script>
<!-- ClipboardJS -->