This commit is contained in:
Aevann1 2022-04-24 22:39:37 +02:00
parent b6d3f04983
commit baf93edcdf
4 changed files with 49 additions and 9 deletions

View file

@ -204,7 +204,7 @@ def api_comment(v):
if not body and not request.files.get('file'): return {"error":"You need to actually write something!"}, 400
body = image_regex.sub(r'\1![](\2)\3', body)
body = image_regex.sub(r'\1![](\2)\4', body)
options = []
for i in poll_regex.finditer(body):
@ -694,7 +694,7 @@ def edit_comment(cid, v):
elif v.bird and len(body) > 140:
return {"error":"You have to type less than 140 characters!"}, 403
body = image_regex.sub(r'\1![](\2)\3', body)
body = image_regex.sub(r'\1![](\2)\4', body)
if v.agendaposter and not v.marseyawarded:
body = torture_ap(body, v.username)