diff --git a/env b/env
index a208e42c0..81b53135a 100644
--- a/env
+++ b/env
@@ -35,3 +35,4 @@ export CF_ZONE="blahblahblah"
export DEBIAN_FRONTEND="noninteractive"
export NODE_VERSION="16.13.0"
export NVM_DIR="/root/.nvm"
+export TELEGRAM_LINK="blahblahblah"
diff --git a/files/helpers/const.py b/files/helpers/const.py
index 3c6e89a83..57cd3a5be 100644
--- a/files/helpers/const.py
+++ b/files/helpers/const.py
@@ -40,6 +40,7 @@ MAILGUN_KEY = environ.get("MAILGUN_KEY").strip()
DESCRIPTION = environ.get("DESCRIPTION").strip()
CF_KEY = environ.get("CF_KEY").strip()
CF_ZONE = environ.get("CF_ZONE").strip()
+TELEGRAM_LINK = environ.get("TELEGRAM_LINK").strip()
GLOBAL = environ.get("GLOBAL", "").strip()
blackjack = environ.get("BLACKJACK", "").strip()
diff --git a/files/helpers/jinja2.py b/files/helpers/jinja2.py
index 836b64ca8..553ad1b21 100644
--- a/files/helpers/jinja2.py
+++ b/files/helpers/jinja2.py
@@ -48,5 +48,5 @@ def inject_constants():
"KOFI_TOKEN":KOFI_TOKEN, "KOFI_LINK":KOFI_LINK,
"approved_embed_hosts":approved_embed_hosts,
"site_settings":app.config['SETTINGS'],
- "EMAIL":EMAIL, "calc_users": calc_users
+ "EMAIL":EMAIL, "calc_users": calc_users, "TELEGRAM_LINK": TELEGRAM_LINK
}
diff --git a/files/templates/header.html b/files/templates/header.html
index 9b310d686..fcdaa31df 100644
--- a/files/templates/header.html
+++ b/files/templates/header.html
@@ -254,7 +254,9 @@
Bugs/Suggestions
- Telegram Channel
+ {% if TELEGRAM_LINK != 'blahblahblah' %}
+ Telegram Channel
+ {% endif %}
{% if SITE_NAME == 'rDrama' %}
Archives
@@ -316,7 +318,9 @@
Bugs/Suggestions
- Telegram Channel
+ {% if TELEGRAM_LINK != 'blahblahblah' %}
+ Telegram Channel
+ {% endif %}
{% if SITE_NAME == 'rDrama' %}Archives{% endif %}
Contact us