diff --git a/files/helpers/config/const.py b/files/helpers/config/const.py index a6199a80a..86d3e710c 100644 --- a/files/helpers/config/const.py +++ b/files/helpers/config/const.py @@ -20,6 +20,7 @@ DISABLE_DOWNVOTES = False DESCRIPTION = "rdrama.net caters to drama in all forms such as: Real life, videos, photos, gossip, rumors, news sites, Reddit, and Beyond™. There isn't drama we won't touch, and we want it all!" EMAIL = "rdrama@rdrama.net" TELEGRAM_ID = "" +TWITTER_ID = "" DEFAULT_CONFIG_VALUE = "blahblahblah" SITE = environ.get("SITE").strip() @@ -606,6 +607,7 @@ if SITE in {'rdrama.net', 'staging.rdrama.net'}: NOTIFICATION_SPAM_AGE_THRESHOLD = 0.5 * 86400 TELEGRAM_ID = "rdramanet" + TWITTER_ID = "rdramanet" DEFAULT_TIME_FILTER = "day" FEATURES['PRONOUNS'] = True @@ -689,6 +691,7 @@ elif SITE == 'watchpeopledie.tv': EMAIL = "wpd@watchpeopledie.tv" TELEGRAM_ID = "wpdtv" + TWITTER_ID = "wpd__tv" DEFAULT_TIME_FILTER = "day" DESCRIPTION = "People die and this is the place to see it. You only have one life, don't make the mistakes seen here." diff --git a/files/routes/jinja2.py b/files/routes/jinja2.py index 54879b943..f7002f266 100644 --- a/files/routes/jinja2.py +++ b/files/routes/jinja2.py @@ -142,7 +142,7 @@ def inject_constants(): "BADGE_THREAD":BADGE_THREAD, "SNAPPY_THREAD":SNAPPY_THREAD, "CHANGELOG_THREAD":CHANGELOG_THREAD, "approved_embed_hosts":approved_embed_hosts, "POST_BODY_LENGTH_LIMIT":POST_BODY_LENGTH_LIMIT, "SITE_SETTINGS":get_settings(), "EMAIL":EMAIL, "max": max, "min": min, "can_see":can_see, - "TELEGRAM_ID":TELEGRAM_ID, "TRUESCORE_MINIMUM":TRUESCORE_MINIMUM, "PROGSTACK_ID":PROGSTACK_ID, + "TELEGRAM_ID":TELEGRAM_ID, "TWITTER_ID":TWITTER_ID, "TRUESCORE_MINIMUM":TRUESCORE_MINIMUM, "PROGSTACK_ID":PROGSTACK_ID, "DONATE_LINK":DONATE_LINK, "DONATE_SERVICE":DONATE_SERVICE, "HOUSE_JOIN_COST":HOUSE_JOIN_COST, "HOUSE_SWITCH_COST":HOUSE_SWITCH_COST, "IMAGE_FORMATS":','.join(IMAGE_FORMATS), "PAGE_SIZES":PAGE_SIZES, "THEMES":THEMES, "COMMENT_SORTS":COMMENT_SORTS, "POST_SORTS":POST_SORTS, diff --git a/files/templates/header.html b/files/templates/header.html index 2aae2b84e..d8ed9ce46 100644 --- a/files/templates/header.html +++ b/files/templates/header.html @@ -334,6 +334,10 @@ Telegram Channel {% endif %} + {% if TWITTER_ID %} + Twitter Account + {% endif %} + {% if SITE_NAME == 'rDrama' %} Archives {% endif %} @@ -397,6 +401,10 @@ Telegram Channel {% endif %} + {% if TWITTER_ID %} + Twitter Account + {% endif %} + {% if SITE_NAME == 'rDrama' %} Archives {% endif %}