Merge remote-tracking branch 'origin/master'

# Conflicts:
#	drama/classes/__init__.py
#	drama/classes/user.py
#	drama/helpers/get.py
#	drama/templates/errors/402.html
#	drama/templates/errors/451.html
This commit is contained in:
fireworks88 2021-07-25 13:13:09 +02:00
commit 7cb3f0f01c
30 changed files with 89 additions and 483 deletions

View file

@ -89,7 +89,6 @@ def publish(pid, v):
@app.route("/submit", methods=["GET"])
@auth_required
@no_negative_balance("html")
def submit_get(v):
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
@ -143,7 +142,6 @@ def post_base36id(pid, anything=None, v=None):
@app.route("/edit_post/<pid>", methods=["POST"])
@is_not_banned
@no_negative_balance("html")
@validate_formkey
def edit_post(pid, v):
@ -278,7 +276,6 @@ def edit_post(pid, v):
@app.route("/submit/title", methods=['GET'])
@limiter.limit("6/minute")
@is_not_banned
@no_negative_balance("html")
def get_post_title(v):
url = request.args.get("url", None)
@ -458,8 +455,6 @@ def archiveorg(url):
@app.route("/api/vue/submit", methods=["POST"])
@limiter.limit("6/minute")
@is_not_banned
@no_negative_balance('html')
@tos_agreed
@validate_formkey
@api("create")
def submit_post(v):