remotes/1693045480750635534/spooky-22
Aevann1 2022-01-04 23:11:29 +02:00
parent 8ad0b008ac
commit 3a327f80af
2 changed files with 3 additions and 0 deletions

View File

@ -15,6 +15,7 @@ from sqlalchemy import *
import gevent
from werkzeug.middleware.proxy_fix import ProxyFix
import redis
import time
app = Flask(__name__, template_folder='templates')
app.wsgi_app = ProxyFix(app.wsgi_app, x_for=3)

View File

@ -490,6 +490,8 @@ def edit_post(pid, v):
elif v.bird:
if len(body) > 140 : return {"error":"You have to type less than 140 characters!"}, 403
if len(body_html) > 20000: return {"error":"Submission body too long!"}, 400
p.body_html = body_html
if request.host == "rdrama.net" and "ivermectin" in body_html.lower():