From a352d92c10c7b489002a65dca6d73383542fb33d Mon Sep 17 00:00:00 2001
From: gooseman <16601315+geese-suck@users.noreply.github.com>
Date: Sat, 6 Aug 2022 19:00:40 -0700
Subject: [PATCH 01/14] make searching not a pain in the ass on mobile
did not test at all lmao
---
files/templates/search.html | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/files/templates/search.html b/files/templates/search.html
index 5816d1e8d..b482c7edf 100644
--- a/files/templates/search.html
+++ b/files/templates/search.html
@@ -9,6 +9,14 @@
{% block PseudoSubmitForm %}{% endblock %}
{% block navbar %}
+
Controversial
@@ -173,4 +181,4 @@
- {% endblock %}
\ No newline at end of file
+ {% endblock %}
From 1bacb9cf9d6626c578797fed6a5ac912b5ca47c5 Mon Sep 17 00:00:00 2001
From: TLSM
Date: Sat, 6 Aug 2022 17:27:58 -0400
Subject: [PATCH 02/14] LGB: site-specific NOTIFIED_USERS.
---
files/helpers/const.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/files/helpers/const.py b/files/helpers/const.py
index 1e639ca8f..f51ebd479 100644
--- a/files/helpers/const.py
+++ b/files/helpers/const.py
@@ -842,6 +842,12 @@ NOTIFIED_USERS = {
'geese': GEESE_ID
}
+if SITE_NAME == 'LGBDropTheT':
+ NOTIFIED_USERS.update({
+ 'ipd': 12, # Im-Probably-Drinking
+ '@rc ': 15, # reluctant_commenter
+ })
+
FORTUNE_REPLIES = ('Your fortune: Allah Wills It','Your fortune: Inshallah, Only Good Things Shall Come To Pass','Your fortune: Allah Smiles At You This Day','Your fortune: Your Bussy Is In For A Blasting','Your fortune: You Will Be Propositioned By A High-Tier Twink','Your fortune: Repent, You Have Displeased Allah And His Vengeance Is Nigh','Your fortune: Reply Hazy, Try Again','Your fortune: lmao you just lost 100 coins','Your fortune: Yikes π¬','Your fortune: You Will Be Blessed With Many Black Bulls','Your fortune: NEETmax, The Day Is Lost If You Venture Outside','Your fortune: A Taste Of Jannah Awaits You Today','Your fortune: Watch Your Back','Your fortune: Outlook good','Your fortune: Godly Luck','Your fortune: Good Luck','Your fortune: Bad Luck','Your fortune: Good news will come to you by mail','Your fortune: Very Bad Luck','Your fortune: ο½·οΎββββββ(οΎβοΎ)ββββββ !!!!','Your fortune: Better not tell you now','Your fortune: You will meet a dark handsome stranger','Your fortune: οΌγΒ΄_γ`οΌοΎο½°οΎ','Your fortune: Excellent Luck','Your fortune: Average Luck')
FACTCHECK_REPLIES = ('Factcheck: This claim has been confirmed as correct by experts. ','Factcheck: This claim has been classified as misogynistic.','Factcheck: This claim is currently being debunked.','Factcheck: This claim is 100% true.','Factcheck: This claim hurts trans lives.','Factcheck: [REDACTED].','Factcheck: This claim is both true and false.','Factcheck: You really believe that shit? Lmao dumbass nigga π€£','Factcheck: None of this is real.','Factcheck: Yes.','Factcheck: This claim has not been approved by experts.','Factcheck: This claim is a gross exageration of reality.','Factcheck: WARNING! THIS CLAIM HAS BEEN CLASSIFIED AS DANGEROUS. PLEASE REMAIN STILL, AN AGENT WILL COME TO MEET YOU SHORTLY.')
From 4fddb88c1af4ad4005309a4fa06e54119de0e95a Mon Sep 17 00:00:00 2001
From: TLSM
Date: Sat, 6 Aug 2022 17:32:35 -0400
Subject: [PATCH 03/14] Hide Android app menu on sites without app.
---
files/helpers/const.py | 3 ++-
files/helpers/jinja2.py | 2 +-
files/templates/header.html | 6 +++++-
3 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/files/helpers/const.py b/files/helpers/const.py
index f51ebd479..b3e33fd52 100644
--- a/files/helpers/const.py
+++ b/files/helpers/const.py
@@ -1055,5 +1055,6 @@ DISCORD_WELCOME_CHANNEL = "846509313941700618"
has_sidebar = path.exists(f'files/templates/sidebar_{SITE_NAME}.html')
has_logo = path.exists(f'files/assets/images/{SITE_NAME}/logo.webp')
+has_app = path.exists(f'files/assets/app_{SITE_NAME}_v2.4.apk')
-GLOBAL = environ.get("GLOBAL")
\ No newline at end of file
+GLOBAL = environ.get("GLOBAL")
diff --git a/files/helpers/jinja2.py b/files/helpers/jinja2.py
index 54b9b9686..3f12dac3c 100644
--- a/files/helpers/jinja2.py
+++ b/files/helpers/jinja2.py
@@ -57,5 +57,5 @@ def inject_constants():
"HOLE_NAME": HOLE_NAME, "HOLE_STYLE_FLAIR": HOLE_STYLE_FLAIR, "HOLE_REQUIRED": HOLE_REQUIRED,
"LOTTERY_ENABLED": LOTTERY_ENABLED, "GUMROAD_LINK": GUMROAD_LINK,
"DEFAULT_THEME": DEFAULT_THEME, "DESCRIPTION": DESCRIPTION,
- "has_sidebar": has_sidebar, "has_logo": has_logo,
+ "has_sidebar": has_sidebar, "has_logo": has_logo, "has_app": has_app,
"FP": FP, "NOTIF_MODACTION_JL_MIN": NOTIF_MODACTION_JL_MIN}
diff --git a/files/templates/header.html b/files/templates/header.html
index 0e706eff3..7e8c4d7ce 100644
--- a/files/templates/header.html
+++ b/files/templates/header.html
@@ -226,7 +226,9 @@