From 463549fc2637ab41f9e19f1888b699c305b91122 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 11 Jan 2022 02:05:00 +0200 Subject: [PATCH] bb --- files/routes/posts.py | 4 ++++ files/templates/comments.html | 2 +- files/templates/header.html | 4 ++-- files/templates/userpage.html | 10 +++++----- 4 files changed, 12 insertions(+), 8 deletions(-) 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 %} -
+ diff --git a/files/templates/userpage.html b/files/templates/userpage.html index 1062c57850..21c7de3a0b 100644 --- a/files/templates/userpage.html +++ b/files/templates/userpage.html @@ -105,10 +105,10 @@