diff --git a/files/routes/comments.py b/files/routes/comments.py index 2460ace2e7..533edff1ab 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -208,8 +208,8 @@ def api_comment(v): if v.agendaposter and not v.marseyawarded: for k, l in AJ_REPLACEMENTS.items(): body = body.replace(k, l) - body = body.replace(' I ', f' @{v.username} ') - body = censor_slurs2(body).upper().replace(' ME ', f' @{v.username} ') + body = body.replace(' I ', f' @{v.username} ').replace(' i ', f' @{v.username} ') + body = censor_slurs2(body).replace(' ME ', f' @{v.username} ').replace(' me ', f' @{v.username} ') body_html = sanitize(CustomRenderer().render(mistletoe.Document(body))) @@ -630,8 +630,8 @@ def edit_comment(cid, v): if v.agendaposter and not v.marseyawarded: for k, l in AJ_REPLACEMENTS.items(): body = body.replace(k, l) - body = body.replace(' I ', f' @{v.username} ') - body = censor_slurs2(body).upper().replace(' ME ', f' @{v.username} ') + body = body.replace(' I ', f' @{v.username} ').replace(' i ', f' @{v.username} ') + body = censor_slurs2(body).replace(' ME ', f' @{v.username} ').replace(' me ', f' @{v.username} ') if not c.options: for i in re.finditer('\s*\$\$([^\$\n]+)\$\$\s*', body): diff --git a/files/routes/posts.py b/files/routes/posts.py index 65c27b838b..eccdaf8e43 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -431,8 +431,8 @@ def edit_post(pid, v): if title != p.title: if v.agendaposter and not v.marseyawarded: for k, l in AJ_REPLACEMENTS.items(): title = title.replace(k, l) - title = title.replace(' I ', f' @{v.username} ') - title = censor_slurs2(title).upper().replace(' ME ', f' @{v.username} ') + title = title.replace(' I ', f' @{v.username} ').replace(' i ', f' @{v.username} ') + title = censor_slurs2(title).replace(' ME ', f' @{v.username} ').replace(' me ', f' @{v.username} ') title_html = filter_emojis_only(title) if v.marseyawarded and len(list(re.finditer('>[^<\s+]|[^>\s+]<', title_html))) > 0: return {"error":"You can only type marseys!"}, 403 @@ -459,8 +459,8 @@ def edit_post(pid, v): if v.agendaposter and not v.marseyawarded: for k, l in AJ_REPLACEMENTS.items(): body = body.replace(k, l) - body = body.replace(' I ', f' @{v.username} ') - body = censor_slurs2(body).upper().replace(' ME ', f' @{v.username} ') + body = body.replace(' I ', f' @{v.username} ').replace(' i ', f' @{v.username} ') + body = censor_slurs2(body).replace(' ME ', f' @{v.username} ').replace(' me ', f' @{v.username} ') if not p.options.count(): for i in re.finditer('\s*\$\$([^\$\n]+)\$\$\s*', body): @@ -729,8 +729,8 @@ def submit_post(v): if v.agendaposter and not v.marseyawarded: for k, l in AJ_REPLACEMENTS.items(): title = title.replace(k, l) - title = title.replace(' I ', f' @{v.username} ') - title = censor_slurs2(title).upper().replace(' ME ', f' @{v.username} ') + title = title.replace(' I ', f' @{v.username} ').replace(' i ', f' @{v.username} ') + title = censor_slurs2(title).replace(' ME ', f' @{v.username} ').replace(' me ', f' @{v.username} ') title_html = filter_emojis_only(title) body = request.values.get("body", "").strip() @@ -928,8 +928,8 @@ def submit_post(v): if v.agendaposter and not v.marseyawarded: for k, l in AJ_REPLACEMENTS.items(): body = body.replace(k, l) - body = body.replace(' I ', f' @{v.username} ') - body = censor_slurs2(body).upper().replace(' ME ', f' @{v.username} ') + body = body.replace(' I ', f' @{v.username} ').replace(' i ', f' @{v.username} ') + body = censor_slurs2(body).replace(' ME ', f' @{v.username} ').replace(' me ', f' @{v.username} ') if request.files.get("file2") and request.headers.get("cf-ipcountry") != "T1": file=request.files["file2"] diff --git a/files/static/dist/main.css b/files/static/dist/main.css index c291f31120..0d3053d270 100644 --- a/files/static/dist/main.css +++ b/files/static/dist/main.css @@ -4076,3 +4076,6 @@ video { width: 20%; } } +.agendaposter { + text-transform: uppercase !important; +} \ No newline at end of file diff --git a/files/static/src/main.css b/files/static/src/main.css index 8d1f5dd6e2..7efbffb837 100644 --- a/files/static/src/main.css +++ b/files/static/src/main.css @@ -473,3 +473,7 @@ max-width: 100%; @apply inline-block object-contain } + +.agendaposter { + text-transform: uppercase !important; +} \ No newline at end of file diff --git a/files/templates/CHRISTMAS/authforms.html b/files/templates/CHRISTMAS/authforms.html index 87afd6826d..dbd52310dd 100644 --- a/files/templates/CHRISTMAS/authforms.html +++ b/files/templates/CHRISTMAS/authforms.html @@ -14,11 +14,11 @@ {% if v %} - + {% if v.agendaposter %}{% elif v.css %}{% endif %} {% else %} - + {% endif %} diff --git a/files/templates/CHRISTMAS/comments.html b/files/templates/CHRISTMAS/comments.html index c58b1ca68e..22f69cff4d 100644 --- a/files/templates/CHRISTMAS/comments.html +++ b/files/templates/CHRISTMAS/comments.html @@ -318,7 +318,7 @@
+
+
{% if p.realurl(v) %}
{% if "streamable.com/" in p.realurl(v) %}
diff --git a/files/templates/CHRISTMAS/submission_listing.html b/files/templates/CHRISTMAS/submission_listing.html
index c23cad1106..d9ad4dfb31 100644
--- a/files/templates/CHRISTMAS/submission_listing.html
+++ b/files/templates/CHRISTMAS/submission_listing.html
@@ -242,13 +242,13 @@
+
{{p.realbody(v) | safe}}
{% endif %}
diff --git a/files/templates/CHRISTMAS/tailwind.html b/files/templates/CHRISTMAS/tailwind.html
index f916832558..2652fc9457 100644
--- a/files/templates/CHRISTMAS/tailwind.html
+++ b/files/templates/CHRISTMAS/tailwind.html
@@ -5,7 +5,7 @@
-
+
Flask + Tailwind CSS
diff --git a/files/templates/authforms.html b/files/templates/authforms.html
index f073961f7d..4b9e83612b 100644
--- a/files/templates/authforms.html
+++ b/files/templates/authforms.html
@@ -14,11 +14,11 @@
{% if v %}
-
+
{% if v.agendaposter %}{% elif v.css %}{% endif %}
{% else %}
-
+
{% endif %}
diff --git a/files/templates/comments.html b/files/templates/comments.html
index 004244c924..5a6a21a1b0 100644
--- a/files/templates/comments.html
+++ b/files/templates/comments.html
@@ -232,7 +232,7 @@
removed by @{{c.ban_reason}}
{% endif %}
-
+
{{c.realbody(v) | safe}}
{% if c.options %}
{{c.options_html(v) | safe}}
diff --git a/files/templates/default.html b/files/templates/default.html
index 67684b04a0..222b7793a2 100644
--- a/files/templates/default.html
+++ b/files/templates/default.html
@@ -6,12 +6,12 @@
{% if v %}
-
+
{% if v.agendaposter %}{% elif v.css %}{% endif %}
{% else %}
-
+
{% endif %}
diff --git a/files/templates/log.html b/files/templates/log.html
index e75c115db8..c67bae66c3 100644
--- a/files/templates/log.html
+++ b/files/templates/log.html
@@ -6,11 +6,11 @@
{% block content %}
{% if v %}
-
+
{% if v.agendaposter %}{% elif v.css %}{% endif %}
{% else %}
-
+
{% endif %}
diff --git a/files/templates/login.html b/files/templates/login.html
index 0b9921594e..cddbbcc67c 100644
--- a/files/templates/login.html
+++ b/files/templates/login.html
@@ -17,7 +17,7 @@
{% endblock %}
-
+
diff --git a/files/templates/login_2fa.html b/files/templates/login_2fa.html
index ca6629e9fb..ed737489e8 100644
--- a/files/templates/login_2fa.html
+++ b/files/templates/login_2fa.html
@@ -13,7 +13,7 @@
2-Step Login - {{'SITE_NAME' | app_config}}
-
+
diff --git a/files/templates/settings.html b/files/templates/settings.html
index 72f01037a8..f3dcb42b96 100644
--- a/files/templates/settings.html
+++ b/files/templates/settings.html
@@ -33,7 +33,7 @@
-
+
{% if v.agendaposter %}{% elif v.css %}{% endif %}
diff --git a/files/templates/settings2.html b/files/templates/settings2.html
index 36254c953a..2aea1c5525 100644
--- a/files/templates/settings2.html
+++ b/files/templates/settings2.html
@@ -38,10 +38,10 @@
{% if v %}
-
+
{% else %}
-
+
{% endif %}
diff --git a/files/templates/sign_up.html b/files/templates/sign_up.html
index 6265b6aad9..4fed1f3efe 100644
--- a/files/templates/sign_up.html
+++ b/files/templates/sign_up.html
@@ -30,7 +30,7 @@
{% if ref_user %}{{ref_user.username}} invites you to {{'SITE_NAME' | app_config}}{% else %}Sign up - {{'SITE_NAME' | app_config}}{% endif %}
-
+
diff --git a/files/templates/sign_up_failed_ref.html b/files/templates/sign_up_failed_ref.html
index be5d00e03f..19c48e9f86 100644
--- a/files/templates/sign_up_failed_ref.html
+++ b/files/templates/sign_up_failed_ref.html
@@ -31,7 +31,7 @@
{% if ref_user %}{{ref_user.username}} invites you to {{'SITE_NAME' | app_config}}{% else %}{{'SITE_NAME' | app_config}}{% endif %}
-
+
diff --git a/files/templates/submission.html b/files/templates/submission.html
index c551c155f3..7a82d60064 100644
--- a/files/templates/submission.html
+++ b/files/templates/submission.html
@@ -356,13 +356,13 @@
{% endif %}
{% if p.realurl(v) %}
-
{% if p.realurl(v) %} {{p.realtitle(v) | safe}} @@ -379,7 +379,7 @@
-- + {{p.realtitle(v) | safe}}
{% if p.realbody(v) and not p.over_18 %} -+
{% if p.club %}{{cc}}{% endif %} {% if p.flair %}{{p.flair | safe}}{% endif %} {{p.realtitle(v) | safe}}
{% else %} -+
{% if p.club %}{{cc}}{% endif %} {% if p.flair %}{{p.flair | safe}}{% endif %} {{p.realtitle(v) | safe}} @@ -396,7 +396,7 @@ {% endif %} -
+
{% if p.is_image %}
diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html
index 4588f56c7b..322087a16c 100644
--- a/files/templates/submission_listing.html
+++ b/files/templates/submission_listing.html
@@ -192,7 +192,7 @@
{{p.views}} views
-
+
{% if p.club %}{{cc}}{% endif %} {% if p.flair %}{{p.flair | safe}}{% endif %} {{p.realtitle(v) | safe}} @@ -490,7 +490,7 @@ {% if not p.club or v and (v.paid_dues or v.id == p.author_id) %} {% if p.realbody(v) %} -
+
{{p.realbody(v) | safe}}
{% if p.author.sig_html and (p.author_id == 1904 or not (v and v.sigs_disabled)) %}
diff --git a/files/templates/submit.html b/files/templates/submit.html
index c49e32b794..f7d86e1a9d 100644
--- a/files/templates/submit.html
+++ b/files/templates/submit.html
@@ -25,11 +25,11 @@
{% block stylesheets %}
{% if v %}
-
+
{% if v.agendaposter %}{% elif v.css %}{% endif %}
{% else %}
-
+
{% endif %}
{% endblock %}