This commit is contained in:
Aevann1 2022-02-01 07:35:05 +02:00
parent cdf714f5c1
commit 85ec536ec6
28 changed files with 5 additions and 10 deletions

View file

@ -700,13 +700,7 @@ def edit_comment(cid, v):
if ban.reason: reason += f" {ban.reason}"
if request.headers.get("Authorization"): return {'error': 'A blacklisted domain was used.'}, 400
return render_template("comment_failed.html",
action=f"/edit_comment/{c.id}",
badlinks=[x.domain for x in bans],
body=body,
v=v
)
return {'error': reason}, 400
if AGENDAPOSTER_PHRASE not in body.lower():
now = int(time.time())
cutoff = now - 60 * 60 * 24