remotes/1693045480750635534/spooky-22
Aevann1 2022-03-26 13:36:25 +02:00
parent a1689149fe
commit e1db64f34a
5 changed files with 6 additions and 5 deletions

View File

@ -688,7 +688,7 @@ title_regex = re.compile("[^\w ]", flags=re.A)
based_regex = re.compile("based and (.{1,20}?)(-| )pilled", flags=re.I|re.A)
controversial_regex = re.compile('(/comments/.*?)"', flags=re.A)
controversial_regex = re.compile('["> ](https:\/\/old.reddit.com/r/[a-zA-Z0-9_]{3,20}\/comments\/.*?)["< ]', flags=re.A)
fishylinks_regex = re.compile("https?://\S+", flags=re.A)

View File

@ -119,7 +119,7 @@ def sanitize(sanitized, noimages=False, alert=False, comment=False, edit=False):
sanitized = strikethrough_regex.sub(r'<del>\1</del>', sanitized)
sanitized = sanitized.replace("\ufeff", "").replace("𒐪","").replace("<script","").replace("script>","").replace('','')
sanitized = sanitized.replace("\ufeff", "").replace("𒐪","").replace("<script","").replace("script>","").replace('','').replace('','')
if alert:
captured = []

View File

@ -1236,6 +1236,7 @@ def submit_post(v, sub=None):
rev = post.url.replace('https://old.reddit.com/', '')
rev = f"* [unddit.com](https://unddit.com/{rev})\n"
else: rev = ''
newposturl = post.url
if newposturl.startswith('/'): newposturl = f"{SITE_FULL}{newposturl}"
body += f"Snapshots:\n\n{rev}* [archive.org](https://web.archive.org/{newposturl})\n* [archive.ph](https://archive.ph/?url={quote(newposturl)}&run=1) (click to archive)\n\n"

View File

@ -22,7 +22,7 @@
<style>
#chat-window {
max-height: 70vh;
max-height: calc(100vh - 220px);
overflow-y: scroll;
background-color: transparent !important;
}
@ -66,7 +66,7 @@
margin-top: 0.5rem;
}
#chat-window {
max-height: 66vh;
max-height: calc(100vh - 250px);
}
}

View File

@ -4,7 +4,7 @@
{% set image=sub.sidebar_url %}
{% else %}
{% set path = "assets/images/" + SITE_NAME + "/sidebar" %}
{% set image = "/static/" + path + "/" + listdir('files/' + path)|random() + '?v=36' %}
{% set image = "/static/" + path + "/" + listdir('files/' + path)|random() + '?v=37' %}
{% endif %}
<img class="mb-4" alt="sidebar image" role="button" data-bs-toggle="modal" data-bs-target="#expandImageModal" onclick="expandDesktopImage('{{image}}')" loading="lazy" src="{{image}}" width=100%>