forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2022-01-19 14:40:51 +02:00
parent a60bc5e578
commit 8112378dc4
3 changed files with 4 additions and 4 deletions

View File

@ -1057,10 +1057,10 @@ def submit_post(v):
url_regex = '<a href=\"(https?:\/\/[a-z]{1,20}\.[^\"]+)\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">(.+)<\/a>'
for url_match in re.finditer(url_regex, new_post.body_html):
href = url_match.group(3)
href = url_match.group(1)
if not href: continue
title = url_match.group(5)
title = url_match.group(2)
if "Snapshots:\n\n" not in body: body += "Snapshots:\n\n"
if f'**[{title}]({href})**:\n\n' not in body:

View File

@ -218,7 +218,7 @@
{% if SITE_NAME == 'Drama' %}
<a href="https://secure.transequality.org/site/Donation2?df_id=1480">
<img alt="site banner" src="/static/assets/images/{{SITE_NAME}}/banners/{{range(1,num_banners)|random()}}.webp?a=17" width="100%">
<img alt="site banner" src="/static/assets/images/{{SITE_NAME}}/banners/{{range(1,num_banners)|random()}}.webp?a=18" width="100%">
</a>
{% else %}
<a href="/">

View File

@ -1,6 +1,6 @@
<div class="col sidebar text-left d-none d-lg-block pt-3 bg-white" style="max-width:300px">
{% set image = "/static/assets/images/" + SITE_NAME + "/sidebar/" + range(1,num_sidebar)|random()|string + ".webp?a=15" %}
{% set image = "/static/assets/images/" + SITE_NAME + "/sidebar/" + range(1,num_sidebar)|random()|string + ".webp?a=16" %}
<a role="button" data-bs-toggle="modal" data-bs-target="#expandImageModal" data-bs-url="{{image}}" onclick="expandDesktopImage('{{image}}')">
<img loading="lazy" src="{{image}}" width=100%>