VERY IMPORTANT, MERGE NAOW: Ping HeyMoon when someone says "GayPoon" #170

Closed
HeyMoon wants to merge 2 commits from <deleted>:gaypoon into master
3 changed files with 3 additions and 1 deletions

View File

@ -866,6 +866,7 @@ if SITE == 'rdrama.net':
'marseyismywaifu': 3377,
'mimw': 3377,
'heymoon': 3635,
'gaypoon': 3635,
'jollymoon': 3635,
'chiobu': 5214,
'mccox': 8239,

View File

@ -509,7 +509,7 @@ def post_sub_css(v:User, sub):
def get_sub_css(sub):
sub = g.db.query(Sub.css).filter_by(name=sub.strip().lower()).one_or_none()
if not sub: abort(404)
resp=make_response(sub.css or "")
resp=make_response("")
resp.headers.add("Content-Type", "text/css")
return resp

View File

@ -468,6 +468,7 @@ def get_css(id):
@app.get("/<int:id>/profilecss")
@limiter.limit(DEFAULT_RATELIMIT)
def get_profilecss(id):
return ''
try: id = int(id)
except: abort(404)