From 7e5a8400a5cd74998cfa418b5d2c38786f562010 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 22 Feb 2022 12:38:28 +0200 Subject: [PATCH] vxc --- files/routes/posts.py | 2 +- files/templates/submit.html | 28 +++++++++++++--------------- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index e67ec056b..dc14f8d03 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -862,7 +862,7 @@ def submit_post(v, sub=None): return render_template("submit.html", SUBS=SUBS, v=v, error=error, title=title, url=url, body=body, ghost=submit_ghost(v,g.db)), 400 - sub = request.values.get("sub") + sub = request.values.get("sub").replace('/s/','') if sub and sub != 'none': sub = g.db.query(Sub.name).filter_by(name=sub.strip().lower()).one_or_none() diff --git a/files/templates/submit.html b/files/templates/submit.html index 2f34e2b6b..e3f50cda5 100644 --- a/files/templates/submit.html +++ b/files/templates/submit.html @@ -80,22 +80,20 @@ {% if SITE_NAME != 'Drama' or sub %} +
- + {% if SITE_NAME != 'Ruqqus' %} - + {% endif %} {% for s in SUBS %} - + {% endfor %} - +
{% endif %} @@ -110,7 +108,7 @@
- + To post an image, use a direct image link such as i.imgur.com
@@ -225,16 +223,16 @@ {% endblock %} - + {% include "emoji_modal.html" %} {% include "gif_modal.html" %}