what a mess

This commit is contained in:
Aevann1 2022-03-24 21:44:12 +02:00
parent 12cacbada8
commit 4dd23f91ca
18 changed files with 333 additions and 287 deletions

View file

@ -1034,10 +1034,6 @@ def submit_post(v, sub=None):
else:
return error("Image/Video files only.")
if '#fortune' in body:
body = body.replace('#fortune', '')
body += '\n\n<p>' + random.choice(FORTUNE_REPLIES) + '</p>'
body_html = sanitize(body)
if v.marseyawarded and marseyaward_body_regex.search(body_html):