fad
This commit is contained in:
parent
b6d3f04983
commit
baf93edcdf
4 changed files with 49 additions and 9 deletions
|
@ -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\3', body)
|
||||
body = image_regex.sub(r'\1\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\3', body)
|
||||
body = image_regex.sub(r'\1\4', body)
|
||||
|
||||
if v.agendaposter and not v.marseyawarded:
|
||||
body = torture_ap(body, v.username)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue