c
This commit is contained in:
parent
b808055097
commit
ac7da85db1
7 changed files with 6 additions and 5 deletions
Binary file not shown.
Before Width: | Height: | Size: 132 KiB After Width: | Height: | Size: 22 KiB |
Binary file not shown.
Before Width: | Height: | Size: 22 KiB |
|
@ -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)
|
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)
|
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 = 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:
|
if alert:
|
||||||
captured = []
|
captured = []
|
||||||
|
|
|
@ -1236,6 +1236,7 @@ def submit_post(v, sub=None):
|
||||||
rev = post.url.replace('https://old.reddit.com/', '')
|
rev = post.url.replace('https://old.reddit.com/', '')
|
||||||
rev = f"* [unddit.com](https://unddit.com/{rev})\n"
|
rev = f"* [unddit.com](https://unddit.com/{rev})\n"
|
||||||
else: rev = ''
|
else: rev = ''
|
||||||
|
|
||||||
newposturl = post.url
|
newposturl = post.url
|
||||||
if newposturl.startswith('/'): newposturl = f"{SITE_FULL}{newposturl}"
|
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"
|
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>
|
<style>
|
||||||
#chat-window {
|
#chat-window {
|
||||||
max-height: 70vh;
|
max-height: calc(100vh - 220px);
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
background-color: transparent !important;
|
background-color: transparent !important;
|
||||||
}
|
}
|
||||||
|
@ -66,7 +66,7 @@
|
||||||
margin-top: 0.5rem;
|
margin-top: 0.5rem;
|
||||||
}
|
}
|
||||||
#chat-window {
|
#chat-window {
|
||||||
max-height: 66vh;
|
max-height: calc(100vh - 250px);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
{% set image=sub.sidebar_url %}
|
{% set image=sub.sidebar_url %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% set path = "assets/images/" + SITE_NAME + "/sidebar" %}
|
{% 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 %}
|
{% 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%>
|
<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…
Add table
Add a link
Reference in a new issue