From 0b9f954220ee0e7c43e294165730b69c6cc4cf49 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 21 Nov 2021 15:11:40 +0200 Subject: [PATCH] df --- files/helpers/const.py | 6 +++++- files/routes/posts.py | 3 ++- files/templates/emoji_modal.html | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/files/helpers/const.py b/files/helpers/const.py index 02bda2524..34dbfa916 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -8,9 +8,12 @@ SLURS = { "retarded": "r-slurred", "retard": "r-slur", "tard": "r-slur", + "gayfag": "gaystrag", + "poorfag": "poorstrag", + "richfag": "richstrag", "newfag": "newstrag", "oldfag": "oldstrag", - "faggot": "cute twink", + "faggotry": "cute twinkry", "faggot": "cute twink", "fag": "cute twink", "pedophile": "libertarian", @@ -25,6 +28,7 @@ SLURS = { "tranny": "🚂🚃🚃", "troon": "🚂🚃🚃", "nonewnormal": "HorseDewormerAddicts", + "kikery": "https://sciencedirect.com/science/article/abs/pii/S016028960600033X", "kike": "https://sciencedirect.com/science/article/abs/pii/S016028960600033X", "janny": "j-slur", "jannie": "j-slur", diff --git a/files/routes/posts.py b/files/routes/posts.py index 9e4cb06fa..93fe7851c 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -922,7 +922,8 @@ def submit_post(v): if "Snapshots:\n\n" not in body: body += "Snapshots:\n\n" body += f'**[{title}]({href})**:\n\n' - body += f'* [reveddit.com](https://reveddit.com/{href.replace("https://old.reddit.com/", "")})\n' + if href.startswith('https://old.reddit.com'): + body += f'* [reveddit.com](https://reveddit.com/{href.replace("https://old.reddit.com/", "")})\n' body += f'* [archive.org](https://web.archive.org/{href})\n' body += f'* [archive.ph](https://archive.ph/?url={quote(href)}&run=1) (click to archive)\n\n' gevent.spawn(archiveorg, href) diff --git a/files/templates/emoji_modal.html b/files/templates/emoji_modal.html index 3c63c247a..99d0f77bc 100644 --- a/files/templates/emoji_modal.html +++ b/files/templates/emoji_modal.html @@ -1,4 +1,4 @@ - +