master
Aevann1 2021-12-08 19:29:11 +02:00
parent b04db8bfce
commit 82461284ea
2 changed files with 2 additions and 2 deletions

View File

@ -124,8 +124,8 @@ def teardown_request(error):
def after_request(response): def after_request(response):
response.headers.add("Strict-Transport-Security", "max-age=31536000") response.headers.add("Strict-Transport-Security", "max-age=31536000")
response.headers.add("Referrer-Policy", "same-origin")
response.headers.add("X-Frame-Options", "deny") response.headers.add("X-Frame-Options", "deny")
response.headers.add("Content-Security-Policy", "script-src 'self';")
return response return response

View File

@ -1070,7 +1070,7 @@ def submit_post(v):
if "rama" in request.host or "pcm" in request.host: if "rama" in request.host or "pcm" in request.host:
if v.id == CARP_ID: if v.id == CARP_ID:
if random.random() < 0.02: body = "i love you carp" if random.random() < 0.02: body = "i love you carp"
else: body = "![](/assets/images/emojis/fuckoffcarp.webp)" else: body = ":#marseyfuckoffcarp:"
elif v.id == LAWLZ_ID: elif v.id == LAWLZ_ID:
if random.random() < 0.5: body = "wow, this lawlzpost sucks!" if random.random() < 0.5: body = "wow, this lawlzpost sucks!"
else: body = "wow, a good lawlzpost for once!" else: body = "wow, a good lawlzpost for once!"