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 %} -
+
{% if c.post and c.post.over_18 %}+18{% endif %} {% if c.post %} diff --git a/files/templates/header.html b/files/templates/header.html index 451b3a6df3..1fd952e609 100644 --- a/files/templates/header.html +++ b/files/templates/header.html @@ -95,8 +95,8 @@
your profile picture
{{v.username}}
-
{{'COINS_NAME' | app_config}}{{v.coins}} {{'COINS_NAME' | app_config}}
-
marseybux{{v.procoins}} Marseybux
+
{{'COINS_NAME' | app_config}}{{v.coins}} {{'COINS_NAME' | app_config}}
+
marseybux{{v.procoins}} Marseybux
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 @@
{{u.coins}} - {{'COINS_NAME' | app_config}}   + {{'COINS_NAME' | app_config}}   {{u.procoins}} - marseybux   + marseybux   {{u.stored_subscriber_count}} follower{{'s' if u.stored_subscriber_count != 1 else ''}}   @@ -334,7 +334,7 @@ {% endblock %} {% block mobileUserBanner %} -