diff --git a/files/helpers/const.py b/files/helpers/const.py
index 7b860b803..266852089 100644
--- a/files/helpers/const.py
+++ b/files/helpers/const.py
@@ -389,7 +389,15 @@ AWARDS = {
"icon": "fas fa-dice-six",
"color": "text-black",
"price": 777
- },
+ },
+ "beano": {
+ "kind": "beano",
+ "title": "Beano",
+ "description": "Stops you from embarrassing yourself with your flatulence",
+ "icon": "fas fa-gas-pump-slash",
+ "color": "text-green",
+ "price": 1000
+ },
"progressivestack": {
"kind": "progressivestack",
"title": "Progressive Stack",
diff --git a/files/routes/awards.py b/files/routes/awards.py
index 242493891..1d69ab695 100644
--- a/files/routes/awards.py
+++ b/files/routes/awards.py
@@ -340,6 +340,12 @@ def award_post(pid, v):
elif kind == "deflector":
if author.deflector: author.deflector += 36000
else: author.deflector = int(time.time()) + 36000
+ elif kind == "beano":
+ if not author.has_badge(128):
+ badge = Badge(user_id=author.id, badge_id=128)
+ g.db.add(badge)
+ g.db.flush()
+ send_notification(author.id, f"@AutoJanny has given you the following profile badge:\n\n![]({badge.path})\n\n{badge.name}")
if author.received_award_count: author.received_award_count += 1
else: author.received_award_count = 1
@@ -572,6 +578,12 @@ def award_comment(cid, v):
elif kind == "deflector":
if author.deflector: author.deflector += 36000
else: author.deflector = int(time.time()) + 36000
+ elif kind == "beano":
+ if not author.has_badge(128):
+ badge = Badge(user_id=author.id, badge_id=128)
+ g.db.add(badge)
+ g.db.flush()
+ send_notification(author.id, f"@AutoJanny has given you the following profile badge:\n\n![]({badge.path})\n\n{badge.name}")
if author.received_award_count: author.received_award_count += 1
else: author.received_award_count = 1
diff --git a/files/templates/authforms.html b/files/templates/authforms.html
index 831f96536..83e570209 100644
--- a/files/templates/authforms.html
+++ b/files/templates/authforms.html
@@ -15,7 +15,7 @@
{% if v %}
-
+
{% if v.agendaposter %}
-
+
{% endif %}
diff --git a/files/templates/award_modal.html b/files/templates/award_modal.html
index 52233ae97..5043203f3 100644
--- a/files/templates/award_modal.html
+++ b/files/templates/award_modal.html
@@ -19,11 +19,6 @@
{{award.owned}} owned
{% endfor %}
-
-
-
-
-
diff --git a/files/templates/chat.html b/files/templates/chat.html
index 57074005b..7290fb3ff 100644
--- a/files/templates/chat.html
+++ b/files/templates/chat.html
@@ -14,7 +14,7 @@
Chat
-
+
{% if v.css %}
diff --git a/files/templates/default.html b/files/templates/default.html
index c8eeb16c1..5b979d6fa 100644
--- a/files/templates/default.html
+++ b/files/templates/default.html
@@ -7,7 +7,7 @@
{% if v %}
-
+
{% if v.agendaposter %}
-
+
{% endif %}
diff --git a/files/templates/log.html b/files/templates/log.html
index 37f72b36f..36ba50875 100644
--- a/files/templates/log.html
+++ b/files/templates/log.html
@@ -6,7 +6,7 @@
{% block content %}
{% if v %}
-
+
{% if v.agendaposter %}
-
+
{% endif %}
diff --git a/files/templates/login.html b/files/templates/login.html
index ad37620d5..6cff61733 100644
--- a/files/templates/login.html
+++ b/files/templates/login.html
@@ -18,7 +18,7 @@
{% endblock %}
-
+
diff --git a/files/templates/login_2fa.html b/files/templates/login_2fa.html
index e89ac2f34..73394680a 100644
--- a/files/templates/login_2fa.html
+++ b/files/templates/login_2fa.html
@@ -14,7 +14,7 @@
2-Step Login - {{SITE_NAME}}
-
+
diff --git a/files/templates/settings.html b/files/templates/settings.html
index c3abe7b28..5fdcfc983 100644
--- a/files/templates/settings.html
+++ b/files/templates/settings.html
@@ -34,7 +34,7 @@
-
+
{% if v.agendaposter %}
-
+
{% else %}
-
+
{% endif %}
diff --git a/files/templates/sign_up.html b/files/templates/sign_up.html
index 6592c28ca..5ec071422 100644
--- a/files/templates/sign_up.html
+++ b/files/templates/sign_up.html
@@ -31,7 +31,7 @@
{% if ref_user %}{{ref_user.username}} invites you to {{SITE_NAME}}{% else %}Sign up - {{SITE_NAME}}{% endif %}
-
+
diff --git a/files/templates/sign_up_failed_ref.html b/files/templates/sign_up_failed_ref.html
index e4cdfe188..2ecceb7f2 100644
--- a/files/templates/sign_up_failed_ref.html
+++ b/files/templates/sign_up_failed_ref.html
@@ -32,7 +32,7 @@
{% if ref_user %}{{ref_user.username}} invites you to {{SITE_NAME}}{% else %}{{SITE_NAME}}{% endif %}
-
+
diff --git a/files/templates/submission.html b/files/templates/submission.html
index 59b7a0bbd..925435b62 100644
--- a/files/templates/submission.html
+++ b/files/templates/submission.html
@@ -41,6 +41,18 @@
{% endif %}
+{% if SITE_NAME == 'rDrama' and not (v and v.has_badge(128)) %}
+
+{% endif %}
+
{% if g.inferior_browser %}
{% if p.award_count("wholesome") %}
-
+
{% if v.agendaposter %}
-
+
{% endif %}
{% endblock %}