forked from MarseyWorld/MarseyWorld
master
parent
a1689149fe
commit
e1db64f34a
|
@ -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)
|
||||
|
||||
|
|
|
@ -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 = []
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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%>
|
||||
|
|
Loading…
Reference in New Issue