This commit is contained in:
Aevann1 2022-02-05 23:58:37 +02:00
parent 80a6c1b033
commit f8eb3679b2
2 changed files with 3 additions and 4 deletions

View file

@ -93,8 +93,7 @@ def publish(pid, v):
def submit_get(v, sub=None):
if sub: sub = g.db.query(Sub.name).filter_by(name=sub).one_or_none()
if sub: sub = sub[0]
elif request.path.startswith('/s/'): abort(404)
if request.path.startswith('/s/') and not sub: abort(404)
return render_template("submit.html", v=v, sub=sub)