diff --git a/files/routes/posts.py b/files/routes/posts.py index efe18d8dcd..5ce615dd23 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -25,6 +25,10 @@ site = environ.get("DOMAIN").strip() site_name = environ.get("SITE_NAME").strip() IMGUR_KEY = environ.get("IMGUR_KEY").strip() +CF_KEY = environ.get("CF_KEY", "").strip() +CF_ZONE = environ.get("CF_ZONE", "").strip() +CF_HEADERS = {"Authorization": f"Bearer {CF_KEY}", "Content-Type": "application/json"} + if path.exists(f'snappy_{site_name}.txt'): with open(f'snappy_{site_name}.txt', "r") as f: if site == 'pcmemes.net': snappyquotes = f.read().split("{[para]}") diff --git a/files/templates/comments.html b/files/templates/comments.html index 8ce4e99106..2b7a9609a7 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -139,7 +139,7 @@ {% endif %} {% if standalone and level==1 %} -