Merge pull request #52 from iro84657/remove-holes

Remove references to holes
This commit is contained in:
Ben Rog-Wilhelm 2022-05-09 20:26:32 -05:00 committed by GitHub
commit 6eab75ea16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 9 additions and 4624 deletions

View file

@ -95,7 +95,7 @@ def publish(pid, v):
return redirect(post.permalink)
@app.get("/submit")
@app.get("/h/<sub>/submit")
# @app.get("/h/<sub>/submit")
@auth_required
def submit_get(v, sub=None):
if sub: sub = g.db.query(Sub.name).filter_by(name=sub.strip().lower()).one_or_none()
@ -108,8 +108,8 @@ def submit_get(v, sub=None):
@app.get("/post/<pid>")
@app.get("/post/<pid>/<anything>")
@app.get("/h/<sub>/post/<pid>")
@app.get("/h/<sub>/post/<pid>/<anything>")
# @app.get("/h/<sub>/post/<pid>")
# @app.get("/h/<sub>/post/<pid>/<anything>")
@auth_desired
def post_id(pid, anything=None, v=None, sub=None):
@ -758,7 +758,7 @@ def api_is_repost():
else: return {'permalink': ''}
@app.post("/submit")
@app.post("/h/<sub>/submit")
# @app.post("/h/<sub>/submit")
@limiter.limit("1/second;2/minute;10/hour;50/day")
@auth_required
def submit_post(v, sub=None):