From d3cbd7cf8831bcbaabc18947dbdd7812e5d5ab70 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 22 Feb 2022 12:58:39 +0200 Subject: [PATCH] fds --- files/routes/posts.py | 2 +- files/templates/submit.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index dc14f8d03..a575c4003 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").replace('/s/','') + sub = request.values.get("sub").replace('/s/','').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 7dfb8b883..b0069af67 100644 --- a/files/templates/submit.html +++ b/files/templates/submit.html @@ -87,11 +87,11 @@ {% if SITE_NAME != 'Ruqqus' %} - + {% endif %} {% for s in SUBS %} - + {% endfor %}