remotes/1693045480750635534/spooky-22
Aevann1 2022-05-22 12:26:59 +02:00
parent 7f41ddcd58
commit 0af46237f6
4 changed files with 11 additions and 4 deletions

View File

@ -320,11 +320,12 @@ def api_comment(v):
body += f"\n\n{url}"
else: return {"error": "Image/Video files only"}, 400
body = body.strip()
if v.admin_level > 2 and parent_post.id == 37749 and level == 1:
with open(f"snappy_{SITE_NAME}.txt", "a", encoding="utf-8") as f:
f.write('\n{[para]}\n' + body)
if v.agendaposter and not v.marseyawarded and parent_post.id not in ADMIGGERS:
body = torture_ap(body, v.username)
@ -785,6 +786,8 @@ def edit_comment(cid, v):
body += f"\n\n{url}"
else: return {"error": "Image/Video files only"}, 400
body = body.strip()
body_html = sanitize(body, edit=True)
if len(body_html) > 20000: abort(400)

View File

@ -477,6 +477,8 @@ def edit_post(pid, v):
body += f"\n\n{url}"
else: return {"error": "Image/Video files only"}, 400
body = body.strip()
if body != p.body:
if v.id == p.author_id and v.agendaposter and not v.marseyawarded: body = torture_ap(body, v.username)
@ -1095,6 +1097,8 @@ def submit_post(v, sub=None):
else:
return error("Image/Video files only.")
body = body.strip()
body_html = sanitize(body)
if v.marseyawarded and marseyaward_body_regex.search(body_html):

View File

@ -231,7 +231,9 @@ def settings_profile_post(v):
else:
if request.headers.get("Authorization") or request.headers.get("xhr"): return {"error": "Image/Video files only"}, 400
return render_template("settings_profile.html", v=v, error="Image/Video files only."), 400
bio = bio.strip()
bio_html = sanitize(bio)
if len(bio_html) > 10000:

View File

@ -3815,6 +3815,4 @@ This is your fate. This is what you chose. There is no turning back. You are the
{[para]}
#fortune
{[para]}
![](/images/16532150566811156.webp)